Skip to content

Commit

Permalink
store basename in db, not path
Browse files Browse the repository at this point in the history
  • Loading branch information
joheli committed Feb 15, 2024
1 parent 823d88e commit 0aa8daf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pdfs/
tipps_*
.gitignore
helper
dumpster/
4 changes: 2 additions & 2 deletions src/rosinenpicker/start.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.0.3'
__version__ = '0.0.4'
import yaml
import re
import os
Expand Down Expand Up @@ -51,7 +51,7 @@ def process_strategy(strategy_name: str, cs: ConfigStrategy, session: Session, r
continue
# save file info
d_file = DbProcessedFile(strategy_id = d_strategy.id,
filename = doc,
filename = os.path.basename(doc),
sha256 = file_sha256(doc))
session.add(d_file)
session.commit()
Expand Down

0 comments on commit 0aa8daf

Please sign in to comment.