File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1+ import pickle
12from mapswipe_workers .basic import BaseFunctions
23
34
45def test_transfer_results ():
5- BaseFunctions .run_export ('production' , [])
6+
7+ filename = 'firebase_imported_projects.pickle'
8+ with open (filename , 'rb' ) as f :
9+ imported_projects = pickle .load (f )
10+
11+ project_ids = [i [1 ] for i in imported_projects ]
12+ BaseFunctions .run_export ('production' , project_ids )
613
714
815if __name__ == '__main__' :
Original file line number Diff line number Diff line change 1+ import pickle
12from mapswipe_workers .basic import BaseFunctions
23
34
4- def test_transfer_results ():
5- BaseFunctions .run_update ('production' , [])
5+ def test_update ():
6+
7+ filename = 'firebase_imported_projects.pickle'
8+ with open (filename , 'rb' ) as f :
9+ imported_projects = pickle .load (f )
10+
11+ project_ids = [i [1 ] for i in imported_projects ]
12+ BaseFunctions .run_update ('production' , project_ids )
613
714
815if __name__ == '__main__' :
9- test_transfer_results ()
16+ test_update ()
You can’t perform that action at this time.
0 commit comments