Compare commits
No commits in common. "230c4298a4ba80f7d241cb236b91d9eb1c0e7ce0" and "e323b1fbe0aa933ea37d05da780f34f6b13a4cc5" have entirely different histories.
230c4298a4
...
e323b1fbe0
@ -139,9 +139,6 @@ def main(
|
||||
grouped: bool = False,
|
||||
special_tag: str | None = None,
|
||||
no_processing: bool = False,
|
||||
folder: str = "data",
|
||||
name: str = "data",
|
||||
sheet_name: str = "digital",
|
||||
) -> None:
|
||||
bez_data = get_bez_data([tag], url)[0]
|
||||
df = construct_dataframe(
|
||||
@ -154,11 +151,11 @@ def main(
|
||||
if dry_run:
|
||||
print(df)
|
||||
else:
|
||||
filename = f"{folder}/{datetime.today().strftime('%Y-%m-%d')}_{name}.ods"
|
||||
filename = f"data/{datetime.today().strftime('%Y-%m-%d')}_data.ods"
|
||||
if Path(filename).exists():
|
||||
print("File already exists!")
|
||||
else:
|
||||
df.to_excel(filename, sheet_name=sheet_name)
|
||||
df.to_excel(filename, sheet_name="digital")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user