bugfixing bot
This commit is contained in:
parent
35d8e9348a
commit
b074656b25
@ -431,7 +431,7 @@ def recent_earnings():
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
def executive_order_message():
|
||||
def executive_order():
|
||||
|
||||
try:
|
||||
with open(f"json/discord/executive_order.json", "r") as file:
|
||||
@ -450,7 +450,7 @@ def executive_order_message():
|
||||
# Load the JSON data from the file using orjson
|
||||
data = orjson.loads(file.read())
|
||||
|
||||
if datetime.fromisoformat(item['date']).date() == today:
|
||||
if datetime.fromisoformat(data['date']).date() == today:
|
||||
data['id'] = file_id.replace(".json","")
|
||||
|
||||
res_list.append(data)
|
||||
@ -510,8 +510,8 @@ def executive_order_message():
|
||||
else:
|
||||
print("Executive Order already sent!")
|
||||
|
||||
except Exception as e:
|
||||
print(e)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def analyst_report():
|
||||
@ -791,7 +791,7 @@ if __name__ == "__main__":
|
||||
options_flow()
|
||||
dark_pool_flow()
|
||||
recent_earnings()
|
||||
executive_order_message()
|
||||
analyst_report()
|
||||
wiim()
|
||||
congress_trading()
|
||||
executive_order()
|
||||
Loading…
x
Reference in New Issue
Block a user