mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
optimize webcolor get
This commit is contained in:
@@ -7353,9 +7353,7 @@ def doUpdateTeamDrive(users):
|
|||||||
}
|
}
|
||||||
i += 5
|
i += 5
|
||||||
elif sys.argv[i].lower() == u'color':
|
elif sys.argv[i].lower() == u'color':
|
||||||
body[u'colorRgb'] = sys.argv[i+1]
|
body[u'colorRgb'] = WEBCOLOR_MAP.get(sys.argv[i+1], sys.argv[i+1])
|
||||||
if body[u'colorRgb'] in WEBCOLOR_MAP.keys():
|
|
||||||
body[u'colorRgb'] = WEBCOLOR_MAP[body[u'colorRgb']]
|
|
||||||
i += 2
|
i += 2
|
||||||
else:
|
else:
|
||||||
print u'ERROR: %s is not a valid argument for "gam <users> update drivefile"'
|
print u'ERROR: %s is not a valid argument for "gam <users> update drivefile"'
|
||||||
|
|||||||
Reference in New Issue
Block a user