Skip to content

Commit

Permalink
Fix pylint error and better README
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Nov 20, 2024
1 parent b204c42 commit 434a4d4
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 6 deletions.
26 changes: 22 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
# Scouting App Demo
> This is just made for fun
# 334 Scouting App

| Images | Images |
| ---- | ----- |
| ![Home unlogined](./assets/home.png) | ![Home logined](./assets/home-2.png) |
| ![Scout](./assets/scout.png) | ![Add data](./assets/scout-2.png) |
| ![Search](./assets/search.png) | ![Compare](./assets/compare.png) |

## Prerequisite
- [MongoDB compass](https://www.mongodb.com/try/download/community) - https://www.mongodb.com/try/download/community
- [Python](https://python.org) - https://python.org


![Demo](demo.png)

## How to install
1. Clone the repo
2. Inside of `app` folder, create a folder called `db` and inside `db` folder create a file named `tortoise.db`
2. Create a database in [MongoDB compass](https://www.mongodb.com/try/download/community):
![MongoDB Compass](./assets/mongodb.png)
3. Create `.env` file in root directory, should look similar to this
> Example:
```
SECRET_KEY=your_secret_key
MONGO_URI=your_mongo_uri
TBA_AUTH_KEY=your_tba_api_key
DEBUG=False
```
3. Install the dependencies: `pip install -r requirements.txt`
4. Run the app through (in parent directory outside of app): `python app/app.py`
3 changes: 1 addition & 2 deletions app/scout/scouting_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ def add_scouting_data(self, data, scouter_id):

self.db.team_data.insert_one(team_data)
logger.info(
f"Added new scouting data for team {
data['team_number']}"
f"Added new scouting data for team {data['team_number']}"
)
return True, "Data added successfully"
except Exception as e:
Expand Down
Binary file added assets/compare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/home-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/mongodb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/scout-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/scout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed demo.png
Binary file not shown.

0 comments on commit 434a4d4

Please sign in to comment.