formatted

This commit is contained in:
Q
2022-01-07 18:58:17 +02:00
parent 671823cbc6
commit 0d57fb2fe1

View File

@@ -43,12 +43,10 @@ class AtDel:
) )
def parse_opts(self): def parse_opts(self):
"""Options parser """Options parser"""
"""
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description="Automatically delete files after due date. Note: file must have same inode to be deleted", description="Automatically delete files after due date. Note: file must have same inode to be deleted",
epilog="Automate deletion by adding cron '0 0 * * * atdel --delete'" epilog="Automate deletion by adding cron '0 0 * * * atdel --delete'",
) )
parser.add_argument( parser.add_argument(
"--verbose", "--verbose",
@@ -121,7 +119,6 @@ class AtDel:
def db_list(self): def db_list(self):
data = [] data = []
with sqlite3.connect(self.config_file) as con: with sqlite3.connect(self.config_file) as con:
rows = con.execute("SELECT added, due, name FROM atdel ORDER BY added;") rows = con.execute("SELECT added, due, name FROM atdel ORDER BY added;")