hockey-blast-common-lib 0.1.11__py3-none-any.whl → 0.1.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hockey_blast_common_lib/aggregate_skater_stats.py +2 -3
- hockey_blast_common_lib/db_connection.py +9 -1
- {hockey_blast_common_lib-0.1.11.dist-info → hockey_blast_common_lib-0.1.13.dist-info}/METADATA +1 -1
- {hockey_blast_common_lib-0.1.11.dist-info → hockey_blast_common_lib-0.1.13.dist-info}/RECORD +6 -6
- {hockey_blast_common_lib-0.1.11.dist-info → hockey_blast_common_lib-0.1.13.dist-info}/WHEEL +0 -0
- {hockey_blast_common_lib-0.1.11.dist-info → hockey_blast_common_lib-0.1.13.dist-info}/top_level.txt +0 -0
@@ -5,15 +5,14 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
5
5
|
|
6
6
|
from datetime import datetime, timedelta
|
7
7
|
import sqlalchemy
|
8
|
-
from options import not_human_names
|
9
8
|
|
10
9
|
from hockey_blast_common_lib.models import Game, Goal, Penalty, GameRoster
|
11
10
|
from hockey_blast_common_lib.stats_models import OrgStatsSkater, DivisionStatsSkater, OrgStatsWeeklySkater, OrgStatsDailySkater, DivisionStatsWeeklySkater, DivisionStatsDailySkater
|
12
11
|
from hockey_blast_common_lib.db_connection import create_session
|
13
12
|
from sqlalchemy.sql import func, case
|
14
|
-
from hockey_blast_common_lib.options import parse_args, MIN_GAMES_FOR_ORG_STATS, MIN_GAMES_FOR_DIVISION_STATS
|
13
|
+
from hockey_blast_common_lib.options import not_human_names, parse_args, MIN_GAMES_FOR_ORG_STATS, MIN_GAMES_FOR_DIVISION_STATS
|
15
14
|
from hockey_blast_common_lib.utils import get_org_id_from_alias, get_human_ids_by_names, get_division_ids_for_last_season_in_all_leagues
|
16
|
-
from
|
15
|
+
from sqlalchemy import func, case, and_
|
17
16
|
|
18
17
|
def aggregate_skater_stats(session, aggregation_type, aggregation_id, names_to_filter_out, filter_human_id=None, aggregation_window=None):
|
19
18
|
human_ids_to_filter = get_human_ids_by_names(session, names_to_filter_out)
|
@@ -4,7 +4,7 @@ from sqlalchemy.orm import sessionmaker
|
|
4
4
|
|
5
5
|
# Database connection parameters per organization
|
6
6
|
DB_PARAMS = {
|
7
|
-
"
|
7
|
+
"frontend": {
|
8
8
|
"dbname": "hockey_blast",
|
9
9
|
"user": "read_only_user",
|
10
10
|
"password": "hockey-blast",
|
@@ -12,6 +12,14 @@ DB_PARAMS = {
|
|
12
12
|
"port": 5432
|
13
13
|
},
|
14
14
|
|
15
|
+
"frontend-sample-db": {
|
16
|
+
"dbname": "hockey_blast_sample",
|
17
|
+
"user": "read_only_user",
|
18
|
+
"password": "hockey-blast",
|
19
|
+
"host": "localhost",
|
20
|
+
"port": 5432
|
21
|
+
},
|
22
|
+
|
15
23
|
"boss": {
|
16
24
|
"dbname": "hockey_blast",
|
17
25
|
"user": "boss",
|
{hockey_blast_common_lib-0.1.11.dist-info → hockey_blast_common_lib-0.1.13.dist-info}/RECORD
RENAMED
@@ -2,14 +2,14 @@ hockey_blast_common_lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
2
2
|
hockey_blast_common_lib/aggregate_goalie_stats.py,sha256=d2qav46Rg2DNIYRj_Ubj1kpQmoPUJHKiwEWOVU25nD4,8742
|
3
3
|
hockey_blast_common_lib/aggregate_human_stats.py,sha256=88OMhTgQjzc9xIakf6kW9_lZwbSXkpsZy8C0pX-Wlq8,14229
|
4
4
|
hockey_blast_common_lib/aggregate_referee_stats.py,sha256=A0PTyEbPUjqfXxlJCDOVioFaQk9AyjjhiWEuRuu35v0,11036
|
5
|
-
hockey_blast_common_lib/aggregate_skater_stats.py,sha256=
|
6
|
-
hockey_blast_common_lib/db_connection.py,sha256=
|
5
|
+
hockey_blast_common_lib/aggregate_skater_stats.py,sha256=37fhgej9trukr8cGaK7DT1HoxBcp95qwsypYCCziqqc,15563
|
6
|
+
hockey_blast_common_lib/db_connection.py,sha256=BO8IxcDMOOo0DTwHKpWoMn6E9_p2X-3XxrXz1fsx2yk,1183
|
7
7
|
hockey_blast_common_lib/models.py,sha256=GqQIGpanmFub97BoYCuaqDov2MxM4LMesUTxZ2edpvw,15393
|
8
8
|
hockey_blast_common_lib/options.py,sha256=-LtEX8duw5Pl3CSpjFlLM5FPvrZuTAxTfSlDPa7H6mQ,761
|
9
9
|
hockey_blast_common_lib/stats_models.py,sha256=PI-mL1jmjCHLAvaATxSsjHEn05g9L_reA_YpsITPWjQ,21047
|
10
10
|
hockey_blast_common_lib/utils.py,sha256=OmeLVJSsjoBrE---w9MwXPKD3-UMZ9HB6a4YtsGDj30,3765
|
11
11
|
hockey_blast_common_lib/wsgi.py,sha256=wl1gf3KtaGSnYbCF5Z2xWwRXNSTQp43HoyhCAKJibI4,750
|
12
|
-
hockey_blast_common_lib-0.1.
|
13
|
-
hockey_blast_common_lib-0.1.
|
14
|
-
hockey_blast_common_lib-0.1.
|
15
|
-
hockey_blast_common_lib-0.1.
|
12
|
+
hockey_blast_common_lib-0.1.13.dist-info/METADATA,sha256=7f-F2D6nN2WiUAbqB-XAWUSn2BZbBkJC8PKCYZEbKy0,318
|
13
|
+
hockey_blast_common_lib-0.1.13.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
14
|
+
hockey_blast_common_lib-0.1.13.dist-info/top_level.txt,sha256=wIR4LIkE40npoA2QlOdfCYlgFeGbsHR8Z6r0h46Vtgc,24
|
15
|
+
hockey_blast_common_lib-0.1.13.dist-info/RECORD,,
|
File without changes
|
{hockey_blast_common_lib-0.1.11.dist-info → hockey_blast_common_lib-0.1.13.dist-info}/top_level.txt
RENAMED
File without changes
|