mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-06-17 17:14:46 +02:00
Add env variables arguments to flask app
- NO_SUBPROCESS to fake subprocesses calls - APP_ROOT to use the app outside of Docker
This commit is contained in:
@ -11,11 +11,11 @@ class Driver:
|
||||
self.mobile_driver = mobile_driver
|
||||
|
||||
def switch_to_driver(self, driver: str):
|
||||
match driver:
|
||||
case "pc" | "PC" | "Pc":
|
||||
match driver.lower():
|
||||
case "pc":
|
||||
self.driver = self.pc_driver
|
||||
|
||||
case "mobile" | "Mobile":
|
||||
case "mobile":
|
||||
self.driver = self.mobile_driver
|
||||
|
||||
case _:
|
||||
|
Reference in New Issue
Block a user