File tree Expand file tree Collapse file tree 3 files changed +54
-4
lines changed Expand file tree Collapse file tree 3 files changed +54
-4
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
2
python :
3
- - ' 2.7 '
3
+ - ' 3.10 '
4
4
install : pip install -r setup/requirements.txt
5
5
script : cd test; nosetests
6
6
before_install :
Original file line number Diff line number Diff line change @@ -367,13 +367,12 @@ def dump_cats():
367
367
if 'subcategories' in item :
368
368
for subcategory in item ['subcategories' ]:
369
369
result .append ({'id' : subcategory ['id' ], 'name' : subcategory ['name' ]})
370
- file_name = 'all_categories_list.csv'
370
+ file_name = '../test/ all_categories_list.csv'
371
371
with open (file_name , 'w' , newline = '' ) as csv_file :
372
372
fieldnames = ['id' , 'name' ]
373
373
writer = csv .DictWriter (csv_file , fieldnames = fieldnames )
374
374
writer .writeheader ()
375
375
writer .writerows (result )
376
376
377
377
if __name__ == "__main__" :
378
- #main()
379
- dump_cats ()
378
+ main ()
Original file line number Diff line number Diff line change
1
+ id,name
2
+ 1,Utilities
3
+ 48,Cleaning
4
+ 5,Electricity
5
+ 6,Heat/gas
6
+ 11,Other
7
+ 37,Trash
8
+ 8,TV/Phone/Internet
9
+ 7,Water
10
+ 2,Uncategorized
11
+ 18,General
12
+ 19,Entertainment
13
+ 20,Games
14
+ 21,Movies
15
+ 22,Music
16
+ 23,Other
17
+ 24,Sports
18
+ 25,Food and drink
19
+ 13,Dining out
20
+ 12,Groceries
21
+ 38,Liquor
22
+ 26,Other
23
+ 27,Home
24
+ 39,Electronics
25
+ 16,Furniture
26
+ 14,Household supplies
27
+ 17,Maintenance
28
+ 4,Mortgage
29
+ 28,Other
30
+ 29,Pets
31
+ 3,Rent
32
+ 30,Services
33
+ 31,Transportation
34
+ 46,Bicycle
35
+ 32,Bus/train
36
+ 15,Car
37
+ 33,Gas/fuel
38
+ 47,Hotel
39
+ 34,Other
40
+ 9,Parking
41
+ 35,Plane
42
+ 36,Taxi
43
+ 40,Life
44
+ 50,Childcare
45
+ 41,Clothing
46
+ 49,Education
47
+ 42,Gifts
48
+ 10,Insurance
49
+ 43,Medical expenses
50
+ 44,Other
51
+ 45,Taxes
You can’t perform that action at this time.
0 commit comments