Skip to content

Commit

Permalink
Merge pull request #7 from AndreWohnsland/dev
Browse files Browse the repository at this point in the history
Preparation for 1.5.0
  • Loading branch information
AndreWohnsland authored Dec 30, 2021
2 parents 818bd03 + 5ad1eff commit 5cb45d9
Show file tree
Hide file tree
Showing 63 changed files with 923 additions and 519 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ team.db
Cocktail_database.db
failed_data.db
custom_config.*
.version.ini
# some testing files
tmp_*
Binary file modified Cocktail_database_default.db
Binary file not shown.
9 changes: 9 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
--------------- 2021_12_30 ---------------------------------------------------------------------------------------------------------
- Restructured maker structure to have all code within the src folder
- Introduced migrator module to be able to make local migrations
- Introduced updater module to programmatically check and fetch latest version from GitHub
- Renamed German DB columns to English names
- Introduced aditional table for failed team data buffering and according logic
- Added new dialog method to ask a yes or no question
- Small code adjustments for cleaner code

--------------- 2021_12_03 ---------------------------------------------------------------------------------------------------------
- Introduced new API Model for Cocktai, Ingredient and IngredientData
- Using new Models within Database returns and in functions
Expand Down
2 changes: 1 addition & 1 deletion dashboard/backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def enter_cocktail_for_team(team: Teaminfo):
cursor.execute(sql, (entry_datetime, team.team, team.volume,))
conn.commit()
conn.close()
return {"message": "Team entry was Successfull", "team": team.team, "volume": team.volume}
return {"message": "Team entry was successfull", "team": team.team, "volume": team.volume}


def get_leaderboard(hourrange=None, limit=2, count=True):
Expand Down
1 change: 1 addition & 0 deletions dashboard/frontend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UI_LANGUAGE=en
1 change: 0 additions & 1 deletion dashboard/frontend/.language.env

This file was deleted.

4 changes: 2 additions & 2 deletions dashboard/frontend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

DATABASE_NAME = "team"
DIRPATH = os.path.dirname(os.path.abspath(__file__))
load_dotenv(os.path.join(DIRPATH, ".language.env"))
load_dotenv(os.path.join(DIRPATH, ".env"))
database_path = os.path.join(DIRPATH, "storage", f"{DATABASE_NAME}.db")


def __choose_language(element: dict) -> str:
language = os.getenv("LANGUAGE")
language = os.getenv("UI_LANGUAGE")
return element.get(language, element["en"])


Expand Down
1 change: 0 additions & 1 deletion dashboard/qt-app/setup_leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import time
import matplotlib
from mainwindow import Ui_Leaderboard
# import datetime

from PyQt5.QtCore import Qt, QRunnable, pyqtSlot, QObject, pyqtSignal, QThreadPool
from PyQt5.QtWidgets import QMainWindow, qApp
Expand Down
Loading

0 comments on commit 5cb45d9

Please sign in to comment.