diff options
author | Frederick Muriuki Muriithi | 2025-07-14 13:49:08 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-07-14 13:49:08 -0500 |
commit | eb6c0f2bddee49907a04e9d78cbb24598a190c23 (patch) | |
tree | 2899d2026afbfd55cc523c89bf6b10adf5debf5b /uploader/publications/models.py | |
parent | 6f9a91f1cb92530ad50c608c1f59ff38acb1b1f5 (diff) | |
download | gn-uploader-eb6c0f2bddee49907a04e9d78cbb24598a190c23.tar.gz |
Fix linting issues.
Diffstat (limited to 'uploader/publications/models.py')
-rw-r--r-- | uploader/publications/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/uploader/publications/models.py b/uploader/publications/models.py index f37b67d..f83be58 100644 --- a/uploader/publications/models.py +++ b/uploader/publications/models.py @@ -30,6 +30,7 @@ def create_new_publications( conn: Connection, publications: tuple[dict, ...] ) -> tuple[dict, ...]: + """Create new publications in the database.""" if len(publications) > 0: with conn.cursor(cursorclass=DictCursor) as cursor: cursor.executemany( @@ -47,7 +48,8 @@ def create_new_publications( return tuple({ **row, "publication_id": row["Id"] } for row in cursor.fetchall()) - return tuple() + + return tuple() def update_publications(conn: Connection , publications: tuple[dict, ...]) -> tuple[dict, ...]: |