From a4d37e8855a23af7d9deb23210c1208ea883e912 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 13 Sep 2020 18:39:36 -0300 Subject: [PATCH] indentation update top_managers.py --- top_managers.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/top_managers.py b/top_managers.py index 9cb944e63e..44db4fdda7 100644 --- a/top_managers.py +++ b/top_managers.py @@ -6,7 +6,7 @@ # number of GW in 2019/20 season. Done as array to avoid calling api for blank GW 30-38. gameWeeks = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,39,40, - 41,42,43,44,45,46,47] + 41,42,43,44,45,46,47] # adds the top 10 team ID's to this array teamIDarray = [] @@ -41,7 +41,7 @@ if count <= topManagerNumber: csvwriter1.writerow([manager['rank'],manager['entry'],manager['player_name'], - manager['entry_name'],manager['total']]) + manager['entry_name'],manager['total']]) count +=1 teamIDarray.append(manager['entry']) @@ -59,15 +59,15 @@ # write data to top_managers_gwInfo.csv if count1 == 0: header = ['team_id','gw','points','bench','gw_rank','transfers','hits','total_points', - 'overall_ank','team_value','chip'] + 'overall_ank','team_value','chip'] csvwriter2.writerow(header) count1 += 1 try: csvwriter2.writerow([teamID,x, parsed['entry_history']['points'], parsed['entry_history']['points_on_bench'], - parsed['entry_history']['rank'], parsed['entry_history']['event_transfers'], - parsed['entry_history']['event_transfers_cost'], parsed['entry_history']['total_points'], - parsed['entry_history']['overall_rank'], int(parsed['entry_history']['value'])/10, parsed['active_chip']]) + parsed['entry_history']['rank'], parsed['entry_history']['event_transfers'], + parsed['entry_history']['event_transfers_cost'], parsed['entry_history']['total_points'], + parsed['entry_history']['overall_rank'], int(parsed['entry_history']['value'])/10, parsed['active_chip']]) except: continue