mirror of https://github.com/zulip/zulip.git
pg_backup_and_purge: Remove unnecessary explicit types.
This commit is contained in:
parent
e72e83793d
commit
4b35211ca1
|
@ -6,7 +6,6 @@ import subprocess
|
|||
import sys
|
||||
import time
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from typing import Dict
|
||||
|
||||
import dateutil.parser
|
||||
|
||||
|
@ -41,7 +40,7 @@ with open("/var/lib/nagios_state/last_postgresql_backup", "w") as f:
|
|||
f.write(now.isoformat())
|
||||
f.write("\n")
|
||||
|
||||
backups: Dict[datetime, str] = {}
|
||||
backups = {}
|
||||
lines = subprocess.check_output(["env-wal-g", "backup-list"], text=True).split("\n")
|
||||
for line in lines[1:]:
|
||||
if line:
|
||||
|
|
Loading…
Reference in New Issue