Skip to content

Commit

Permalink
cache food items
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewedy committed May 23, 2024
1 parent 9299276 commit a2625d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import random
from abc import abstractmethod, ABC

import util


class HistoryManager(ABC):
def __init__(self):
Expand All @@ -23,7 +25,7 @@ def load_history(self):


class FileSystemHistoryManager(HistoryManager):
def __init__(self, file_path='~/.lunchy/history.json'):
def __init__(self, file_path=util.get_root_fs() + '/selection_history.json'):
super().__init__()
self.file_path = os.path.expanduser(file_path)
self.load_history()
Expand Down

0 comments on commit a2625d9

Please sign in to comment.