Fix: Login.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Project: PARTS Website
|
||||
Project: Magic Tracker
|
||||
Author: Edward Middleton-Smith
|
||||
Precision And Research Technology Systems Limited
|
||||
Shuffle & Skirmish
|
||||
|
||||
Technology: Business Objects
|
||||
Feature: MTG Game Business Object
|
||||
@@ -18,7 +18,7 @@ from datetime import datetime
|
||||
from dataclasses import dataclass
|
||||
from typing import ClassVar
|
||||
from sqlalchemy import bindparam
|
||||
from sqlalchemy.types import Text, Boolean
|
||||
from sqlalchemy.types import Text, Boolean, Integer
|
||||
|
||||
|
||||
class MTG_Game(SQLAlchemy_ABC, Base):
|
||||
@@ -147,6 +147,7 @@ class MTG_Game(SQLAlchemy_ABC, Base):
|
||||
'''
|
||||
|
||||
class Parameters_MTG_Game(Get_Many_Parameters_Base):
|
||||
access_user_id: int
|
||||
get_all_game: bool
|
||||
get_inactive_game: bool
|
||||
game_ids: str
|
||||
@@ -159,7 +160,8 @@ class Parameters_MTG_Game(Get_Many_Parameters_Base):
|
||||
@classmethod
|
||||
def get_default(cls, user_id_session):
|
||||
return cls(
|
||||
get_all_game = True
|
||||
access_user_id = user_id_session
|
||||
, get_all_game = True
|
||||
, get_inactive_game = False
|
||||
, game_ids = ''
|
||||
, get_all_user = False
|
||||
@@ -172,7 +174,8 @@ class Parameters_MTG_Game(Get_Many_Parameters_Base):
|
||||
@classmethod
|
||||
def from_json(cls, json):
|
||||
return cls(
|
||||
get_all_game = json.get('a_get_all_game', False)
|
||||
access_user_id = json.get('a_access_user_id', None)
|
||||
, get_all_game = json.get('a_get_all_game', False)
|
||||
, get_inactive_game = json.get('a_get_inactive_game', False)
|
||||
, game_ids = json.get('a_game_ids', '')
|
||||
, get_all_user = json.get('a_get_all_user', False)
|
||||
@@ -184,7 +187,8 @@ class Parameters_MTG_Game(Get_Many_Parameters_Base):
|
||||
|
||||
def to_json(self):
|
||||
return {
|
||||
'a_get_all_game': self.get_all_game
|
||||
'a_access_user_id': self.access_user_id
|
||||
, 'a_get_all_game': self.get_all_game
|
||||
, 'a_get_inactive_game': self.get_inactive_game
|
||||
, 'a_game_ids': str(self.game_ids)
|
||||
, 'a_get_all_user': self.get_all_user
|
||||
@@ -196,7 +200,8 @@ class Parameters_MTG_Game(Get_Many_Parameters_Base):
|
||||
@staticmethod
|
||||
def get_type_hints():
|
||||
return {
|
||||
'a_get_all_game': Boolean
|
||||
'a_access_user_id': Integer
|
||||
, 'a_get_all_game': Boolean
|
||||
, 'a_get_inactive_game': Boolean
|
||||
, 'a_game_ids': Text
|
||||
, 'a_get_all_user': Boolean
|
||||
|
||||
Reference in New Issue
Block a user