harmdevries commited on
Commit
2585038
1 Parent(s): b411370

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -41,6 +41,7 @@ for name, repo_name in name2repo:
41
  Description=desc['leader']))
42
  name2num_milestones[name] = num_milestones
43
 
 
44
  colors = {'not started': 'rgb(217, 217, 217)',
45
  'in progress': 'rgb(147, 196, 125)',
46
  'high priority - on track': 'rgb(234, 153, 153)',
@@ -52,12 +53,12 @@ if len(all_status) == 0:
52
 
53
  for key in colors.keys():
54
  if key not in all_status:
55
- df.append(dict(Task=task_name,
56
  Start='2023-04-02',
57
  Finish='2023-04-02',
58
  Resource=key))
59
 
60
- fig = ff.create_gantt(df, colors=colors,
61
  index_col='Resource',
62
  show_colorbar=True,
63
  show_hover_fill=True,
 
41
  Description=desc['leader']))
42
  name2num_milestones[name] = num_milestones
43
 
44
+ copy_df = copy.deepcopy(df)
45
  colors = {'not started': 'rgb(217, 217, 217)',
46
  'in progress': 'rgb(147, 196, 125)',
47
  'high priority - on track': 'rgb(234, 153, 153)',
 
53
 
54
  for key in colors.keys():
55
  if key not in all_status:
56
+ copy_df.append(dict(Task=task_name,
57
  Start='2023-04-02',
58
  Finish='2023-04-02',
59
  Resource=key))
60
 
61
+ fig = ff.create_gantt(copy_df, colors=colors,
62
  index_col='Resource',
63
  show_colorbar=True,
64
  show_hover_fill=True,