@@ -1142,8 +1142,8 @@ def session_type_post(transaction):
11421142 :return:
11431143 """
11441144 with stash ['app' ].app_context ():
1145- event = EventFactoryBasic ()
1146- db .session .add (event )
1145+ session_type = SessionTypeFactory ()
1146+ db .session .add (session_type )
11471147 db .session .commit ()
11481148
11491149
@@ -1221,10 +1221,8 @@ def speaker_post(transaction):
12211221 :return:
12221222 """
12231223 with stash ['app' ].app_context ():
1224- event = EventFactoryBasic ()
1225- db .session .add (event )
1226- session = SessionFactory ()
1227- db .session .add (session )
1224+ speaker = SpeakerFactory ()
1225+ db .session .add (speaker )
12281226 db .session .commit ()
12291227
12301228
@@ -1328,8 +1326,8 @@ def social_link_post(transaction):
13281326 :return:
13291327 """
13301328 with stash ['app' ].app_context ():
1331- event = EventFactoryBasic ()
1332- db .session .add (event )
1329+ social_link = SocialLinkFactory ()
1330+ db .session .add (social_link )
13331331 db .session .commit ()
13341332
13351333
@@ -1373,18 +1371,6 @@ def social_link_delete(transaction):
13731371
13741372
13751373# ------------------------- Speakers Calls -------------------------
1376- @hooks .before ("Speakers Calls > Speakers Call Collection > Get Speakers Call" )
1377- def speakers_call_get (transaction ):
1378- """
1379- GET /events/1/speakers-call
1380- :param transaction:
1381- :return:
1382- """
1383- with stash ['app' ].app_context ():
1384- speakers_call = SpeakersCallFactory ()
1385- db .session .add (speakers_call )
1386- db .session .commit ()
1387-
13881374
13891375@hooks .before ("Speakers Calls > Speakers Call Collection > Create Speakers Call" )
13901376def speakers_call_post (transaction ):
@@ -1394,8 +1380,8 @@ def speakers_call_post(transaction):
13941380 :return:
13951381 """
13961382 with stash ['app' ].app_context ():
1397- event = EventFactoryBasic ()
1398- db .session .add (event )
1383+ speakers_call = SpeakersCallFactory ()
1384+ db .session .add (speakers_call )
13991385 db .session .commit ()
14001386
14011387
@@ -1473,8 +1459,8 @@ def sponsor_post(transaction):
14731459 :return:
14741460 """
14751461 with stash ['app' ].app_context ():
1476- event = EventFactoryBasic ()
1477- db .session .add (event )
1462+ sponsor = SponsorFactory ()
1463+ db .session .add (sponsor )
14781464 db .session .commit ()
14791465
14801466
@@ -1593,8 +1579,8 @@ def ticket_post(transaction):
15931579 :return:
15941580 """
15951581 with stash ['app' ].app_context ():
1596- event = EventFactoryBasic ()
1597- db .session .add (event )
1582+ ticket = TicketFactory ()
1583+ db .session .add (ticket )
15981584 db .session .commit ()
15991585
16001586
@@ -1645,8 +1631,8 @@ def ticket_event(transaction):
16451631 :return:
16461632 """
16471633 with stash ['app' ].app_context ():
1648- ticket = TicketFactory ()
1649- db .session .add (ticket )
1634+ event = EventFactoryBasic ()
1635+ db .session .add (event )
16501636 db .session .commit ()
16511637
16521638
@@ -1764,8 +1750,8 @@ def ticket_tag_post(transaction):
17641750 :return:
17651751 """
17661752 with stash ['app' ].app_context ():
1767- tickets = TicketFactory ()
1768- db .session .add (tickets )
1753+ ticket_tag = TicketTagFactory ()
1754+ db .session .add (ticket_tag )
17691755 db .session .commit ()
17701756
17711757
@@ -1816,8 +1802,8 @@ def ticket_tag_event(transaction):
18161802 :return:
18171803 """
18181804 with stash ['app' ].app_context ():
1819- ticket_tag = TicketTagFactory ()
1820- db .session .add (ticket_tag )
1805+ event = EventFactoryBasic ()
1806+ db .session .add (event )
18211807 db .session .commit ()
18221808
18231809
@@ -1829,8 +1815,8 @@ def ticket_tag_ticket(transaction):
18291815 :return:
18301816 """
18311817 with stash ['app' ].app_context ():
1832- ticket_tag = TicketTagFactory ()
1833- db .session .add (ticket_tag )
1818+ ticket = TicketFactory ()
1819+ db .session .add (ticket )
18341820 db .session .commit ()
18351821
18361822
@@ -1915,8 +1901,8 @@ def track_post(transaction):
19151901 :return:
19161902 """
19171903 with stash ['app' ].app_context ():
1918- event = EventFactoryBasic ()
1919- db .session .add (event )
1904+ track = TrackFactory ()
1905+ db .session .add (track )
19201906 db .session .commit ()
19211907
19221908
@@ -1967,8 +1953,8 @@ def event_track_get_list(transaction):
19671953 :return:
19681954 """
19691955 with stash ['app' ].app_context ():
1970- track = TrackFactory ()
1971- db .session .add (track )
1956+ event = EventFactoryBasic ()
1957+ db .session .add (event )
19721958 db .session .commit ()
19731959
19741960
@@ -2129,10 +2115,8 @@ def email_notification_post(transaction):
21292115 :return:
21302116 """
21312117 with stash ['app' ].app_context ():
2132- event = EventFactoryBasic ()
2133- user = UserFactory ()
2134- db .session .add (user )
2135- db .session .add (event )
2118+ email_notification = EmailNotificationFactory ()
2119+ db .session .add (email_notification )
21362120 db .session .commit ()
21372121
21382122
@@ -2898,8 +2882,8 @@ def access_code_post(transaction):
28982882 :return:
28992883 """
29002884 with stash ['app' ].app_context ():
2901- event = EventFactoryBasic ()
2902- db .session .add (event )
2885+ access_code = AccessCodeFactory ()
2886+ db .session .add (access_code )
29032887 db .session .commit ()
29042888
29052889
@@ -2964,8 +2948,8 @@ def event_access_code_get_list(transaction):
29642948 :return:
29652949 """
29662950 with stash ['app' ].app_context ():
2967- access_code = AccessCodeFactory ()
2968- db .session .add (access_code )
2951+ event = EventFactoryBasic ()
2952+ db .session .add (event )
29692953 db .session .commit ()
29702954
29712955
@@ -2977,8 +2961,8 @@ def user_access_code_get_list(transaction):
29772961 :return:
29782962 """
29792963 with stash ['app' ].app_context ():
2980- access_code = AccessCodeFactory ()
2981- db .session .add (access_code )
2964+ user = UserFactory ()
2965+ db .session .add (user )
29822966 db .session .commit ()
29832967
29842968
@@ -2990,8 +2974,8 @@ def ticket_access_code_get_list(transaction):
29902974 :return:
29912975 """
29922976 with stash ['app' ].app_context ():
2993- access_code = AccessCodeFactory ()
2994- db .session .add (access_code )
2977+ ticket = TicketFactory ()
2978+ db .session .add (ticket )
29952979 db .session .commit ()
29962980
29972981
@@ -3004,8 +2988,8 @@ def custom_form_post(transaction):
30042988 :return:
30052989 """
30062990 with stash ['app' ].app_context ():
3007- event = EventFactoryBasic ()
3008- db .session .add (event )
2991+ custom_form = CustomFormFactory ()
2992+ db .session .add (custom_form )
30092993 db .session .commit ()
30102994
30112995
@@ -3070,8 +3054,8 @@ def faq_post(transaction):
30703054 :return:
30713055 """
30723056 with stash ['app' ].app_context ():
3073- event = EventFactoryBasic ()
3074- db .session .add (event )
3057+ faq = FaqFactory ()
3058+ db .session .add (faq )
30753059 db .session .commit ()
30763060
30773061
@@ -3123,8 +3107,8 @@ def faq_get_list(transaction):
31233107 :return:
31243108 """
31253109 with stash ['app' ].app_context ():
3126- faq = FaqFactory ()
3127- db .session .add (faq )
3110+ event = EventFactoryBasic ()
3111+ db .session .add (event )
31283112 db .session .commit ()
31293113
31303114
@@ -3137,8 +3121,8 @@ def faq_type_post(transaction):
31373121 :return:
31383122 """
31393123 with stash ['app' ].app_context ():
3140- event = EventFactoryBasic ()
3141- db .session .add (event )
3124+ faq_type = FaqTypeFactory ()
3125+ db .session .add (faq_type )
31423126 db .session .commit ()
31433127
31443128
@@ -3189,8 +3173,8 @@ def event_faq_type_get_list(transaction):
31893173 :return:
31903174 """
31913175 with stash ['app' ].app_context ():
3192- faq_type = FaqTypeFactory ()
3193- db .session .add (faq_type )
3176+ event = EventFactoryBasic ()
3177+ db .session .add (event )
31943178 db .session .commit ()
31953179
31963180
@@ -3229,8 +3213,8 @@ def role_invite_post(transaction):
32293213 :return:
32303214 """
32313215 with stash ['app' ].app_context ():
3232- event = EventFactoryBasic ()
3233- db .session .add (event )
3216+ role_invite = RoleInviteFactory ()
3217+ db .session .add (role_invite )
32343218 db .session .commit ()
32353219
32363220
@@ -3507,8 +3491,8 @@ def event_sub_topic_post(transaction):
35073491 :return:
35083492 """
35093493 with stash ['app' ].app_context ():
3510- event_topic = EventTopicFactory ()
3511- db .session .add (event_topic )
3494+ event_sub_topic = EventSubTopicFactory ()
3495+ db .session .add (event_sub_topic )
35123496 db .session .commit ()
35133497
35143498
@@ -3992,7 +3976,7 @@ def event_statistics_general_get(transaction):
39923976 db .session .commit ()
39933977
39943978
3995- # ------------------------- Event Statistics -------------------------
3979+ # ------------------------- Order Statistics -------------------------
39963980
39973981@hooks .before ("Order Statistics > Order Statistics Details By Event > Show Order Statistics By Event" )
39983982def order_statistics_event_get (transaction ):
0 commit comments