Spaces:
Sleeping
Sleeping
Update worker.py
Browse files
worker.py
CHANGED
@@ -10,6 +10,7 @@ import TripoSR.obj_gen as obj_gen
|
|
10 |
import os
|
11 |
# from dotenv import load_dotenv
|
12 |
import time
|
|
|
13 |
# load_dotenv()
|
14 |
|
15 |
|
@@ -24,10 +25,11 @@ firebase_admin.initialize_app(cred, {'storageBucket': fire_bucket})
|
|
24 |
ref = db.reference('/Tasks',url=fire_url)
|
25 |
bucket = storage.bucket()
|
26 |
|
|
|
27 |
IsSuperbase = False
|
28 |
-
|
|
|
29 |
IsSuperbase = True
|
30 |
-
|
31 |
|
32 |
class Task:
|
33 |
def __init__(self,tasks):
|
|
|
10 |
import os
|
11 |
# from dotenv import load_dotenv
|
12 |
import time
|
13 |
+
import datetime
|
14 |
# load_dotenv()
|
15 |
|
16 |
|
|
|
25 |
ref = db.reference('/Tasks',url=fire_url)
|
26 |
bucket = storage.bucket()
|
27 |
|
28 |
+
# Check if it is the second half of the month in Eastern Standard Time
|
29 |
IsSuperbase = False
|
30 |
+
current_time = datetime.datetime.now(datetime.timezone(datetime.timedelta(hours=-5))) # Eastern Standard Time offset
|
31 |
+
if current_time.day > 15:
|
32 |
IsSuperbase = True
|
|
|
33 |
|
34 |
class Task:
|
35 |
def __init__(self,tasks):
|