@@ -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,30 +1371,15 @@ 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 ):
13911377 """
1392- POST /events/1/ speakers-call
1378+ POST /speakers-calls
13931379 :param transaction:
13941380 :return:
13951381 """
1396- with stash ['app' ].app_context ():
1397- event = EventFactoryBasic ()
1398- db .session .add (event )
1399- db .session .commit ()
1382+ transaction ['skip' ] = True
14001383
14011384
14021385@hooks .before ("Speakers Calls > Speakers Call Details > Speakers Call Details" )
@@ -1473,8 +1456,8 @@ def sponsor_post(transaction):
14731456 :return:
14741457 """
14751458 with stash ['app' ].app_context ():
1476- event = EventFactoryBasic ()
1477- db .session .add (event )
1459+ sponsor = SponsorFactory ()
1460+ db .session .add (sponsor )
14781461 db .session .commit ()
14791462
14801463
@@ -1593,8 +1576,8 @@ def ticket_post(transaction):
15931576 :return:
15941577 """
15951578 with stash ['app' ].app_context ():
1596- event = EventFactoryBasic ()
1597- db .session .add (event )
1579+ ticket = TicketFactory ()
1580+ db .session .add (ticket )
15981581 db .session .commit ()
15991582
16001583
@@ -1645,8 +1628,8 @@ def ticket_event(transaction):
16451628 :return:
16461629 """
16471630 with stash ['app' ].app_context ():
1648- ticket = TicketFactory ()
1649- db .session .add (ticket )
1631+ event = EventFactoryBasic ()
1632+ db .session .add (event )
16501633 db .session .commit ()
16511634
16521635
@@ -1764,8 +1747,8 @@ def ticket_tag_post(transaction):
17641747 :return:
17651748 """
17661749 with stash ['app' ].app_context ():
1767- tickets = TicketFactory ()
1768- db .session .add (tickets )
1750+ ticket_tag = TicketTagFactory ()
1751+ db .session .add (ticket_tag )
17691752 db .session .commit ()
17701753
17711754
@@ -1816,8 +1799,8 @@ def ticket_tag_event(transaction):
18161799 :return:
18171800 """
18181801 with stash ['app' ].app_context ():
1819- ticket_tag = TicketTagFactory ()
1820- db .session .add (ticket_tag )
1802+ event = EventFactoryBasic ()
1803+ db .session .add (event )
18211804 db .session .commit ()
18221805
18231806
@@ -1829,8 +1812,8 @@ def ticket_tag_ticket(transaction):
18291812 :return:
18301813 """
18311814 with stash ['app' ].app_context ():
1832- ticket_tag = TicketTagFactory ()
1833- db .session .add (ticket_tag )
1815+ ticket = TicketFactory ()
1816+ db .session .add (ticket )
18341817 db .session .commit ()
18351818
18361819
@@ -1915,8 +1898,8 @@ def track_post(transaction):
19151898 :return:
19161899 """
19171900 with stash ['app' ].app_context ():
1918- event = EventFactoryBasic ()
1919- db .session .add (event )
1901+ track = TrackFactory ()
1902+ db .session .add (track )
19201903 db .session .commit ()
19211904
19221905
@@ -1967,8 +1950,8 @@ def event_track_get_list(transaction):
19671950 :return:
19681951 """
19691952 with stash ['app' ].app_context ():
1970- track = TrackFactory ()
1971- db .session .add (track )
1953+ event = EventFactoryBasic ()
1954+ db .session .add (event )
19721955 db .session .commit ()
19731956
19741957
@@ -2129,10 +2112,8 @@ def email_notification_post(transaction):
21292112 :return:
21302113 """
21312114 with stash ['app' ].app_context ():
2132- event = EventFactoryBasic ()
2133- user = UserFactory ()
2134- db .session .add (user )
2135- db .session .add (event )
2115+ email_notification = EmailNotificationFactory ()
2116+ db .session .add (email_notification )
21362117 db .session .commit ()
21372118
21382119
@@ -2898,8 +2879,8 @@ def access_code_post(transaction):
28982879 :return:
28992880 """
29002881 with stash ['app' ].app_context ():
2901- event = EventFactoryBasic ()
2902- db .session .add (event )
2882+ access_code = AccessCodeFactory ()
2883+ db .session .add (access_code )
29032884 db .session .commit ()
29042885
29052886
@@ -2964,8 +2945,8 @@ def event_access_code_get_list(transaction):
29642945 :return:
29652946 """
29662947 with stash ['app' ].app_context ():
2967- access_code = AccessCodeFactory ()
2968- db .session .add (access_code )
2948+ event = EventFactoryBasic ()
2949+ db .session .add (event )
29692950 db .session .commit ()
29702951
29712952
@@ -2977,8 +2958,8 @@ def user_access_code_get_list(transaction):
29772958 :return:
29782959 """
29792960 with stash ['app' ].app_context ():
2980- access_code = AccessCodeFactory ()
2981- db .session .add (access_code )
2961+ user = UserFactory ()
2962+ db .session .add (user )
29822963 db .session .commit ()
29832964
29842965
@@ -2990,8 +2971,8 @@ def ticket_access_code_get_list(transaction):
29902971 :return:
29912972 """
29922973 with stash ['app' ].app_context ():
2993- access_code = AccessCodeFactory ()
2994- db .session .add (access_code )
2974+ ticket = TicketFactory ()
2975+ db .session .add (ticket )
29952976 db .session .commit ()
29962977
29972978
@@ -3004,8 +2985,8 @@ def custom_form_post(transaction):
30042985 :return:
30052986 """
30062987 with stash ['app' ].app_context ():
3007- event = EventFactoryBasic ()
3008- db .session .add (event )
2988+ custom_form = CustomFormFactory ()
2989+ db .session .add (custom_form )
30092990 db .session .commit ()
30102991
30112992
@@ -3070,8 +3051,8 @@ def faq_post(transaction):
30703051 :return:
30713052 """
30723053 with stash ['app' ].app_context ():
3073- event = EventFactoryBasic ()
3074- db .session .add (event )
3054+ faq = FaqFactory ()
3055+ db .session .add (faq )
30753056 db .session .commit ()
30763057
30773058
@@ -3123,8 +3104,8 @@ def faq_get_list(transaction):
31233104 :return:
31243105 """
31253106 with stash ['app' ].app_context ():
3126- faq = FaqFactory ()
3127- db .session .add (faq )
3107+ event = EventFactoryBasic ()
3108+ db .session .add (event )
31283109 db .session .commit ()
31293110
31303111
@@ -3137,8 +3118,8 @@ def faq_type_post(transaction):
31373118 :return:
31383119 """
31393120 with stash ['app' ].app_context ():
3140- event = EventFactoryBasic ()
3141- db .session .add (event )
3121+ faq_type = FaqTypeFactory ()
3122+ db .session .add (faq_type )
31423123 db .session .commit ()
31433124
31443125
@@ -3189,8 +3170,8 @@ def event_faq_type_get_list(transaction):
31893170 :return:
31903171 """
31913172 with stash ['app' ].app_context ():
3192- faq_type = FaqTypeFactory ()
3193- db .session .add (faq_type )
3173+ event = EventFactoryBasic ()
3174+ db .session .add (event )
31943175 db .session .commit ()
31953176
31963177
@@ -3229,8 +3210,8 @@ def role_invite_post(transaction):
32293210 :return:
32303211 """
32313212 with stash ['app' ].app_context ():
3232- event = EventFactoryBasic ()
3233- db .session .add (event )
3213+ role_invite = RoleInviteFactory ()
3214+ db .session .add (role_invite )
32343215 db .session .commit ()
32353216
32363217
@@ -3507,8 +3488,8 @@ def event_sub_topic_post(transaction):
35073488 :return:
35083489 """
35093490 with stash ['app' ].app_context ():
3510- event_topic = EventTopicFactory ()
3511- db .session .add (event_topic )
3491+ event_sub_topic = EventSubTopicFactory ()
3492+ db .session .add (event_sub_topic )
35123493 db .session .commit ()
35133494
35143495
@@ -3992,7 +3973,7 @@ def event_statistics_general_get(transaction):
39923973 db .session .commit ()
39933974
39943975
3995- # ------------------------- Event Statistics -------------------------
3976+ # ------------------------- Order Statistics -------------------------
39963977
39973978@hooks .before ("Order Statistics > Order Statistics Details By Event > Show Order Statistics By Event" )
39983979def order_statistics_event_get (transaction ):
0 commit comments