mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
BC: Add scenario support.
This commit is contained in:
1 parent
e73f76024e
commit
a5ecc2383c
6 files changed
+221
-86
No files matched your search
@@ -30,7 +30,8 @@ logger = logging.getLogger()
|
||||
|
||||
class Friction(SQLSubModel):
|
||||
def __init__(self, id: int = -1,
|
||||
status=None, owner_scenario=-1):
|
||||
status=None,
|
||||
owner_scenario=-1):
|
||||
super(Friction, self).__init__(
|
||||
id=id, status=status,
|
||||
owner_scenario=owner_scenario
|
||||
@@ -149,7 +150,7 @@ class Friction(SQLSubModel):
|
||||
table = execute(
|
||||
"SELECT pamhyr_id, deleted, begin_rk, end_rk, " +
|
||||
"begin_strickler, end_strickler, scenario " +
|
||||
f"FROM friction " +
|
||||
"FROM friction " +
|
||||
f"WHERE reach = {reach.pamhyr_id} " +
|
||||
f"AND scenario = {scenario.id} " +
|
||||
f"AND pamhyr_id NOT IN ({', '.join(map(str, loaded))}) " +
|
||||
|
||||
Reference in new issue
Block a user