Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
legnaleurc committed Jan 3, 2024
1 parent 78051ef commit ebd5834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drive/app/benchmark/_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def random_date() -> datetime:


def random_str() -> str:
return ''.join(random.choices(_STR_LIST, k=64))
return "".join(random.choices(_STR_LIST, k=64))


def random_private() -> dict[str, str]:
Expand Down
4 changes: 1 addition & 3 deletions drive/app/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ def get_daily_usage(drive: Drive) -> int:
now = datetime.now(UTC)
yesterday = now - timedelta(days=1)
dsn = _get_dsn(drive)
return get_uploaded_size(
dsn, int(yesterday.timestamp()), int(now.timestamp())
)
return get_uploaded_size(dsn, yesterday, now)


def _get_dsn(drive: Drive) -> str:
Expand Down

0 comments on commit ebd5834

Please sign in to comment.