diff --git a/docs/GuessThePriceDB.png b/docs/database/GuessThePriceDB.png similarity index 100% rename from docs/GuessThePriceDB.png rename to docs/database/GuessThePriceDB.png diff --git a/docs/GuessThePriceDB.uxf b/docs/database/GuessThePriceDB.uxf similarity index 95% rename from docs/GuessThePriceDB.uxf rename to docs/database/GuessThePriceDB.uxf index 43244e6..67be7cd 100644 --- a/docs/GuessThePriceDB.uxf +++ b/docs/database/GuessThePriceDB.uxf @@ -1,99 +1,99 @@ - - - 16 - - UMLUseCase - - 3056 - 768 - 192 - 96 - - lt=. -Collaboration -fg=red -bg=yellow - - - - UMLClass - - 256 - 208 - 464 - 192 - - User --- -telegram_id: integer (PK) -username: varchar(20) (Unique) -admin: tinyint(1) - - - - UMLClass - - 928 - 576 - 464 - 176 - - Score --- -telegram_id: integer (PK/FK) -date: Date (PK) -product_id: varchar(20) (FK) -guess: float -score: integer - - - - - - - UMLClass - - 1568 - 192 - 464 - 208 - - Product --- -product_id: varchar(20) (PK) -price: float -image_link: Text -title: Text -description: Text -date: Date - - - - - - - - Relation - - 1376 - 224 - 224 - 496 - - lt=- - - 120.0;10.0;10.0;290.0 - - - Relation - - 704 - 240 - 256 - 416 - - lt=- - - 140.0;240.0;10.0;10.0 - - + + + 16 + + UMLUseCase + + 3056 + 768 + 192 + 96 + + lt=. +Collaboration +fg=red +bg=yellow + + + + UMLClass + + 256 + 208 + 464 + 192 + + User +-- +telegram_id: integer (PK) +username: varchar(20) (Unique) +admin: tinyint(1) + + + + UMLClass + + 928 + 576 + 464 + 176 + + Score +-- +telegram_id: integer (PK/FK) +date: Date (PK) +product_id: varchar(20) (FK) +guess: float +score: integer + + + + + + + UMLClass + + 1568 + 192 + 464 + 208 + + Product +-- +product_id: varchar(20) (PK) +price: float +image_link: Text +title: Text +description: Text +date: Date + + + + + + + + Relation + + 1376 + 224 + 224 + 496 + + lt=- + + 120.0;10.0;10.0;290.0 + + + Relation + + 704 + 240 + 256 + 416 + + lt=- + + 140.0;240.0;10.0;10.0 + + diff --git a/source/Dockerfile b/source/Dockerfile index 1ef23c2..7ea5876 100644 --- a/source/Dockerfile +++ b/source/Dockerfile @@ -14,4 +14,4 @@ COPY source /srv/flask_app RUN chmod +x ./deploy/start.sh # Run the app -CMD ["./deploy/start.sh"] \ No newline at end of file +CMD ["python", "bot.py"] \ No newline at end of file diff --git a/source/deploy/start.sh b/source/deploy/start.sh deleted file mode 100644 index 05cc58f..0000000 --- a/source/deploy/start.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -python bot.py