Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eccentricOrange committed Dec 19, 2023
1 parent 04e76ac commit c468bac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion npbc_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
"""


from sqlite3 import DatabaseError, connect, Connection
from argparse import ArgumentParser
from argparse import Namespace as ArgNamespace
from collections.abc import Generator
from datetime import datetime
from json import dumps
from sqlite3 import Connection, DatabaseError, connect
from sys import argv

from colorama import Fore, Style
Expand Down
6 changes: 3 additions & 3 deletions npbc_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,9 @@ def delete_existing_paper(connection: Connection, paper_id: int) -> None:
# check if the paper exists
if not connection.execute(
"SELECT EXISTS (SELECT 1 FROM papers WHERE paper_id = ?);",
(paper_id,)).fetchone()[0]:
raise npbc_exceptions.PaperNotExists(f"Paper with ID {paper_id} does not exist."
)
(paper_id,)
).fetchone()[0]:
raise npbc_exceptions.PaperNotExists(f"Paper with ID {paper_id} does not exist.")

# delete the paper
connection.execute(
Expand Down

0 comments on commit c468bac

Please sign in to comment.