Skip to content

Commit

Permalink
output filename without path and extension (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
wlckd authored Jul 25, 2023
1 parent ecb5c0e commit 8065a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/fsrs4anki_optimizer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def remembered_fallback_prompt(key: str, pretty: str = None):
profile = \
f"""{{
// Generated, Optimized anki deck settings
"deckName": "{filename}",// PLEASE CHANGE THIS TO THE DECKS PROPER NAME
"deckName": "{os.path.splitext(os.path.basename(filename))[0]}",// PLEASE CHANGE THIS TO THE DECKS PROPER NAME
"w": {optimizer.w},
"requestRetention": {optimizer.optimal_retention},
"maximumInterval": 36500,
Expand Down

0 comments on commit 8065a7c

Please sign in to comment.