Fix: Login.

This commit is contained in:
2026-03-15 19:52:21 +00:00
parent e8e9a02e7b
commit 97dccafc05
80 changed files with 1475 additions and 536 deletions

View File

@@ -1,7 +1,7 @@
"""
Project: PARTS Website
Project: Magic Tracker
Author: Edward Middleton-Smith
Precision And Research Technology Systems Limited
Shuffle & Skirmish
Technology: Backend
Feature: Form Base and Meta Classes - data input

View File

@@ -1,7 +1,7 @@
"""
Project: PARTS Website
Project: Magic Tracker
Author: Edward Middleton-Smith
Precision And Research Technology Systems Limited
Shuffle & Skirmish
Technology: Backend
Feature: MTG Game Form
@@ -87,7 +87,8 @@ class Filters_MTG_Game(Form_Base):
def to_parameters(self, user_id_session):
return Parameters_MTG_Game (
get_all_game = True
access_user_id = user_id_session
, get_all_game = True
, get_inactive_game = not self.active_only.data
, game_ids = ''
, get_all_user = False
@@ -95,8 +96,6 @@ class Filters_MTG_Game(Form_Base):
, user_ids = '' if user_id_session is None else str(user_id_session)
, require_all_id_filters_met = True
, require_any_id_filters_met = True
, require_all_non_id_filters_met = False
, require_any_non_id_filters_met = True
)
@@ -126,7 +125,8 @@ class Filters_MTG_Game_Player(Form_Base):
def to_parameters(self, user_id_session, game_id=None):
params = Parameters_MTG_Game_Player(
get_all_player = True
access_user_id = user_id_session
, get_all_player = True
, get_inactive_player = not self.active_only.data
, player_ids = ''
, game_ids = str(game_id) if game_id else ''
@@ -170,14 +170,21 @@ class Filters_MTG_Deck(Form_Base):
, MTG_Deck.FLAG_IS_COMMANDER: self.is_commander.data
}
def to_parameters(self):
def to_parameters(self, user_id_session):
return Parameters_MTG_Deck(
get_all_deck = True
access_user_id = user_id_session
, get_all_deck = True
, get_inactive_deck = not self.active_only.data
, deck_ids = ''
, deck_names = self.search.data
, include_commander_option = True
, include_commander_option = self.is_commander.data
, commander_bracket_ids = ''
, get_all_game = False
, get_inactive_game = not self.active_only.data
, game_ids = ''
, get_all_user = False
, get_inactive_user = False
, user_ids = str(user_id_session)
, require_all_id_filters_met = False
, require_any_id_filters_met = True
, require_all_non_id_filters_met = False

View File

@@ -1,7 +1,7 @@
"""
Project: PARTS Website
Project: Magic Tracker
Author: Edward Middleton-Smith
Precision And Research Technology Systems Limited
Shuffle & Skirmish
Technology: Backend
Feature: User Form