@@ -1143,8 +1143,8 @@ def session_type_post(transaction):
11431143 :return:
11441144 """
11451145 with stash ['app' ].app_context ():
1146- event = EventFactoryBasic ()
1147- db .session .add (event )
1146+ session_type = SessionTypeFactory ()
1147+ db .session .add (session_type )
11481148 db .session .commit ()
11491149
11501150
@@ -1222,8 +1222,6 @@ def speaker_post(transaction):
12221222 :return:
12231223 """
12241224 with stash ['app' ].app_context ():
1225- session = SessionFactory ()
1226- db .session .add (session )
12271225 speaker = SpeakerFactory ()
12281226 db .session .add (speaker )
12291227 db .session .commit ()
@@ -1329,8 +1327,8 @@ def social_link_post(transaction):
13291327 :return:
13301328 """
13311329 with stash ['app' ].app_context ():
1332- event = EventFactoryBasic ()
1333- db .session .add (event )
1330+ social_link = SocialLinkFactory ()
1331+ db .session .add (social_link )
13341332 db .session .commit ()
13351333
13361334
@@ -1374,30 +1372,15 @@ def social_link_delete(transaction):
13741372
13751373
13761374# ------------------------- Speakers Calls -------------------------
1377- @hooks .before ("Speakers Calls > Speakers Call Collection > Get Speakers Call" )
1378- def speakers_call_get (transaction ):
1379- """
1380- GET /events/1/speakers-call
1381- :param transaction:
1382- :return:
1383- """
1384- with stash ['app' ].app_context ():
1385- speakers_call = SpeakersCallFactory ()
1386- db .session .add (speakers_call )
1387- db .session .commit ()
1388-
13891375
13901376@hooks .before ("Speakers Calls > Speakers Call Collection > Create Speakers Call" )
13911377def speakers_call_post (transaction ):
13921378 """
1393- POST /events/1/ speakers-call
1379+ POST /speakers-calls
13941380 :param transaction:
13951381 :return:
13961382 """
1397- with stash ['app' ].app_context ():
1398- event = EventFactoryBasic ()
1399- db .session .add (event )
1400- db .session .commit ()
1383+ transaction ['skip' ] = True
14011384
14021385
14031386@hooks .before ("Speakers Calls > Speakers Call Details > Speakers Call Details" )
@@ -1474,8 +1457,8 @@ def sponsor_post(transaction):
14741457 :return:
14751458 """
14761459 with stash ['app' ].app_context ():
1477- event = EventFactoryBasic ()
1478- db .session .add (event )
1460+ sponsor = SponsorFactory ()
1461+ db .session .add (sponsor )
14791462 db .session .commit ()
14801463
14811464
@@ -1594,8 +1577,8 @@ def ticket_post(transaction):
15941577 :return:
15951578 """
15961579 with stash ['app' ].app_context ():
1597- event = EventFactoryBasic ()
1598- db .session .add (event )
1580+ ticket = TicketFactory ()
1581+ db .session .add (ticket )
15991582 db .session .commit ()
16001583
16011584
@@ -1646,8 +1629,8 @@ def ticket_event(transaction):
16461629 :return:
16471630 """
16481631 with stash ['app' ].app_context ():
1649- ticket = TicketFactory ()
1650- db .session .add (ticket )
1632+ event = EventFactoryBasic ()
1633+ db .session .add (event )
16511634 db .session .commit ()
16521635
16531636
@@ -1765,8 +1748,8 @@ def ticket_tag_post(transaction):
17651748 :return:
17661749 """
17671750 with stash ['app' ].app_context ():
1768- tickets = TicketFactory ()
1769- db .session .add (tickets )
1751+ ticket_tag = TicketTagFactory ()
1752+ db .session .add (ticket_tag )
17701753 db .session .commit ()
17711754
17721755
@@ -1817,8 +1800,8 @@ def ticket_tag_event(transaction):
18171800 :return:
18181801 """
18191802 with stash ['app' ].app_context ():
1820- ticket_tag = TicketTagFactory ()
1821- db .session .add (ticket_tag )
1803+ event = EventFactoryBasic ()
1804+ db .session .add (event )
18221805 db .session .commit ()
18231806
18241807
@@ -1830,8 +1813,8 @@ def ticket_tag_ticket(transaction):
18301813 :return:
18311814 """
18321815 with stash ['app' ].app_context ():
1833- ticket_tag = TicketTagFactory ()
1834- db .session .add (ticket_tag )
1816+ ticket = TicketFactory ()
1817+ db .session .add (ticket )
18351818 db .session .commit ()
18361819
18371820
@@ -1916,8 +1899,8 @@ def track_post(transaction):
19161899 :return:
19171900 """
19181901 with stash ['app' ].app_context ():
1919- event = EventFactoryBasic ()
1920- db .session .add (event )
1902+ track = TrackFactory ()
1903+ db .session .add (track )
19211904 db .session .commit ()
19221905
19231906
@@ -1968,8 +1951,8 @@ def event_track_get_list(transaction):
19681951 :return:
19691952 """
19701953 with stash ['app' ].app_context ():
1971- track = TrackFactory ()
1972- db .session .add (track )
1954+ event = EventFactoryBasic ()
1955+ db .session .add (event )
19731956 db .session .commit ()
19741957
19751958
@@ -2130,10 +2113,8 @@ def email_notification_post(transaction):
21302113 :return:
21312114 """
21322115 with stash ['app' ].app_context ():
2133- event = EventFactoryBasic ()
2134- user = UserFactory ()
2135- db .session .add (user )
2136- db .session .add (event )
2116+ email_notification = EmailNotificationFactory ()
2117+ db .session .add (email_notification )
21372118 db .session .commit ()
21382119
21392120
@@ -2899,8 +2880,8 @@ def access_code_post(transaction):
28992880 :return:
29002881 """
29012882 with stash ['app' ].app_context ():
2902- event = EventFactoryBasic ()
2903- db .session .add (event )
2883+ access_code = AccessCodeFactory ()
2884+ db .session .add (access_code )
29042885 db .session .commit ()
29052886
29062887
@@ -2965,8 +2946,8 @@ def event_access_code_get_list(transaction):
29652946 :return:
29662947 """
29672948 with stash ['app' ].app_context ():
2968- access_code = AccessCodeFactory ()
2969- db .session .add (access_code )
2949+ event = EventFactoryBasic ()
2950+ db .session .add (event )
29702951 db .session .commit ()
29712952
29722953
@@ -2978,8 +2959,8 @@ def user_access_code_get_list(transaction):
29782959 :return:
29792960 """
29802961 with stash ['app' ].app_context ():
2981- access_code = AccessCodeFactory ()
2982- db .session .add (access_code )
2962+ user = UserFactory ()
2963+ db .session .add (user )
29832964 db .session .commit ()
29842965
29852966
@@ -2991,8 +2972,8 @@ def ticket_access_code_get_list(transaction):
29912972 :return:
29922973 """
29932974 with stash ['app' ].app_context ():
2994- access_code = AccessCodeFactory ()
2995- db .session .add (access_code )
2975+ ticket = TicketFactory ()
2976+ db .session .add (ticket )
29962977 db .session .commit ()
29972978
29982979
@@ -3005,8 +2986,8 @@ def custom_form_post(transaction):
30052986 :return:
30062987 """
30072988 with stash ['app' ].app_context ():
3008- event = EventFactoryBasic ()
3009- db .session .add (event )
2989+ custom_form = CustomFormFactory ()
2990+ db .session .add (custom_form )
30102991 db .session .commit ()
30112992
30122993
@@ -3071,8 +3052,8 @@ def faq_post(transaction):
30713052 :return:
30723053 """
30733054 with stash ['app' ].app_context ():
3074- event = EventFactoryBasic ()
3075- db .session .add (event )
3055+ faq = FaqFactory ()
3056+ db .session .add (faq )
30763057 db .session .commit ()
30773058
30783059
@@ -3124,8 +3105,8 @@ def faq_get_list(transaction):
31243105 :return:
31253106 """
31263107 with stash ['app' ].app_context ():
3127- faq = FaqFactory ()
3128- db .session .add (faq )
3108+ event = EventFactoryBasic ()
3109+ db .session .add (event )
31293110 db .session .commit ()
31303111
31313112
@@ -3138,8 +3119,8 @@ def faq_type_post(transaction):
31383119 :return:
31393120 """
31403121 with stash ['app' ].app_context ():
3141- event = EventFactoryBasic ()
3142- db .session .add (event )
3122+ faq_type = FaqTypeFactory ()
3123+ db .session .add (faq_type )
31433124 db .session .commit ()
31443125
31453126
@@ -3190,8 +3171,8 @@ def event_faq_type_get_list(transaction):
31903171 :return:
31913172 """
31923173 with stash ['app' ].app_context ():
3193- faq_type = FaqTypeFactory ()
3194- db .session .add (faq_type )
3174+ event = EventFactoryBasic ()
3175+ db .session .add (event )
31953176 db .session .commit ()
31963177
31973178
@@ -3230,8 +3211,8 @@ def role_invite_post(transaction):
32303211 :return:
32313212 """
32323213 with stash ['app' ].app_context ():
3233- event = EventFactoryBasic ()
3234- db .session .add (event )
3214+ role_invite = RoleInviteFactory ()
3215+ db .session .add (role_invite )
32353216 db .session .commit ()
32363217
32373218
@@ -3508,8 +3489,8 @@ def event_sub_topic_post(transaction):
35083489 :return:
35093490 """
35103491 with stash ['app' ].app_context ():
3511- event_topic = EventTopicFactory ()
3512- db .session .add (event_topic )
3492+ event_sub_topic = EventSubTopicFactory ()
3493+ db .session .add (event_sub_topic )
35133494 db .session .commit ()
35143495
35153496
@@ -3993,7 +3974,7 @@ def event_statistics_general_get(transaction):
39933974 db .session .commit ()
39943975
39953976
3996- # ------------------------- Event Statistics -------------------------
3977+ # ------------------------- Order Statistics -------------------------
39973978
39983979@hooks .before ("Order Statistics > Order Statistics Details By Event > Show Order Statistics By Event" )
39993980def order_statistics_event_get (transaction ):
0 commit comments