-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* redis * all model * somewhat faster * config changed * app * router: * user model * user router, bots connected * bug fixes * Admin * Revert config * Squashed commit of the following: commit 61382915c33287f9b5916f2aafc5bca69a34b1d4 Author: rangoiv <rangoiv@gmail.com> Date: Tue Apr 9 23:48:52 2024 +0200 Logging * dio testova * fixing routers * Rade router testovi! * energy market tests * resource market test fix * orderbook tests * fixed all tests * reverted some configs * small fix --------- Co-authored-by: rangoiv <rangoiv@gmail.com>
- Loading branch information
Showing
83 changed files
with
2,043 additions
and
3,860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
logfile.log | ||
.venv | ||
scores |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
from .table import Table | ||
from .db import database | ||
from .rate_limit import limiter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from databases import Database | ||
from redis_om import get_redis_connection | ||
from config import config | ||
|
||
|
||
if config['testing']: | ||
database = Database(config['test_database']['url']) | ||
else: | ||
database = Database(config['database']['url']) | ||
redis_port = config["redis"]["port"] | ||
|
||
|
||
def get_my_redis_connection(): | ||
return get_redis_connection(port=redis_port) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.