Add WrIntermapsReport and WrIntermapsReportHistory to mapping.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 17 Dec 2019 20:19:10 +0000 (20:19 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 17 Dec 2019 20:19:10 +0000 (20:19 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@2857 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrorm.py

index dff6d7c002c97e2787d24dd4a47659627b683036..7e9a0bef21eea09a742e121d603c6e41bdd682ba 100644 (file)
@@ -19,9 +19,22 @@ class WrIntermapsSledrun:
     pass
 
 
+class WrIntermapsReport:
+    pass
+
+
+class WrIntermapsReportHistory:
+    pass
+
+
 metadata = sqlalchemy.schema.MetaData()
-wrintermapssledrun_table = wrpylib.wrmwdb.wrintermapssledrun_table(metadata)
+
 page_table = wrpylib.mwdb.page_table(metadata)
+wrintermapssledrun_table = wrpylib.wrmwdb.wrintermapssledrun_table(metadata)
+wrintermapsreport_table = wrpylib.wrmwdb.wrintermapsreport_table(metadata)
+wrintermapsreporthistory_table = wrpylib.wrmwdb.wrintermapsreporthistory_table(metadata)
 
-sqlalchemy.orm.mapper(WrIntermapsSledrun, wrintermapssledrun_table)
 sqlalchemy.orm.mapper(Page, page_table)
+sqlalchemy.orm.mapper(WrIntermapsSledrun, wrintermapssledrun_table)
+sqlalchemy.orm.mapper(WrIntermapsReport, wrintermapsreport_table)
+sqlalchemy.orm.mapper(WrIntermapsReportHistory, wrintermapsreporthistory_table)