Skip to content

Commit

Permalink
reformat print
Browse files Browse the repository at this point in the history
  • Loading branch information
mourginakis committed Dec 4, 2023
1 parent 4327d7f commit 654c9f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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-10-02")
t2 = HistoryBuilderDB.datetime_to_epoch_seconds("2023-09-30")
# t2 = HistoryBuilderDB.datetime_to_epoch_seconds("2023-11-04")
print(t1, t2)
# rows = db.get_between(1696006820, 1696009820)
Expand All @@ -52,6 +52,12 @@ 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)
print("Done!")

Expand Down

0 comments on commit 654c9f3

Please sign in to comment.