Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mourginakis committed Dec 4, 2023
1 parent 654c9f3 commit 2c8e76c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions historybuilder/node_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_status(parsed_json: dict):
)

t1 = HistoryBuilderDB.datetime_to_epoch_seconds("2023-09-29")
t2 = HistoryBuilderDB.datetime_to_epoch_seconds("2023-09-30")
t2 = HistoryBuilderDB.datetime_to_epoch_seconds("2023-10-04")
# t2 = HistoryBuilderDB.datetime_to_epoch_seconds("2023-11-04")
print(t1, t2)
# rows = db.get_between(1696006820, 1696009820)
Expand All @@ -50,15 +50,14 @@ def list_2_dataframe(t1, t2) -> pd.DataFrame:


for window in windows:
print(window, flush=True)
t0, t1 = window
print(
f"Chewing on:\n"
f" {t0} -> {t1}\n"
f" {HistoryBuilderDB.epoch_seconds_to_datetime(t0)} -> {HistoryBuilderDB.epoch_seconds_to_datetime(t1)}\n\n",
flush=True
)
pd.concat([df, list_2_dataframe(t0, t1)], ignore_index=True)
df = pd.concat([df, list_2_dataframe(t0, t1)], ignore_index=True)
print("Done!")

# Create dataframe
Expand Down

0 comments on commit 2c8e76c

Please sign in to comment.