Skip to content

Commit

Permalink
Changed the default athkar path.
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudAtef999 committed Oct 31, 2024
1 parent 232466b commit 57526b9
Show file tree
Hide file tree
Showing 45 changed files with 7 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions ui/dialogs/athkar_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from core_functions.athkar.athkar_db_manager import AthkarDBManager
from core_functions.athkar.models import AthkarCategory
from core_functions.athkar.athkar_scheduler import AthkarScheduler
from utils.const import user_db_path, data_folder, athkar_db_path
from utils.const import user_db_path, data_folder, athkar_db_path, default_athkar_path

class AthkarDialog(QDialog):
athkar_scheduler = AthkarScheduler(athkar_db_path, "Audio/adkar", data_folder/"athkar/text_athkar.json")
athkar_scheduler = AthkarScheduler(athkar_db_path, default_athkar_path, data_folder/"athkar/text_athkar.json")
athkar_scheduler.start()

def __init__(self, parent):
Expand Down
6 changes: 5 additions & 1 deletion utils/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
albayan_folder = os.path.join(tecwindow_folder, "albayan")
os.makedirs(albayan_folder, exist_ok=True)
user_db_path = os.path.join(albayan_folder, "user_data.db")
athkar_db_path = Path(albayan_folder)/"athkar.db"
data_folder = Path("database")

#athkar
athkar_db_path = Path(albayan_folder) / "athkar.db"
default_athkar_path = Path(albayan_folder) / "audio" / "athkar"
test_athkar_path = Path("audio/athkar")

# albayan folder in temp
temp_folder = os.path.join(os.getenv("TEMP"), "albayan")
os.makedirs(temp_folder, exist_ok=True)
Expand Down

0 comments on commit 57526b9

Please sign in to comment.