-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes admin priviledge to stop work in activity #2167
Changes from 7 commits
3f08aef
97ecd80
c40acca
649e10a
a81be04
2e781e2
10a38b5
6324dec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,29 +50,17 @@ class Meta: | |
config = JSONField(default=dict, help_text=_('The JSON configuration of the custom avatar.'), ) | ||
# Github Avatar | ||
github_svg = models.FileField( | ||
upload_to=get_upload_filename, | ||
null=True, | ||
blank=True, | ||
help_text=_('The Github avatar SVG.') | ||
upload_to=get_upload_filename, null=True, blank=True, help_text=_('The Github avatar SVG.') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😅 |
||
) | ||
png = models.ImageField( | ||
upload_to=get_upload_filename, | ||
null=True, | ||
blank=True, | ||
help_text=_('The Github avatar PNG.'), | ||
upload_to=get_upload_filename, null=True, blank=True, help_text=_('The Github avatar PNG.'), | ||
) | ||
# Custom Avatar | ||
custom_avatar_png = models.ImageField( | ||
upload_to=get_upload_filename, | ||
null=True, | ||
blank=True, | ||
help_text=_('The custom avatar PNG.'), | ||
upload_to=get_upload_filename, null=True, blank=True, help_text=_('The custom avatar PNG.'), | ||
) | ||
svg = models.FileField( | ||
upload_to=get_upload_filename, | ||
null=True, | ||
blank=True, | ||
help_text=_('The custom avatar SVG.'), | ||
upload_to=get_upload_filename, null=True, blank=True, help_text=_('The custom avatar SVG.'), | ||
) | ||
|
||
use_github_avatar = models.BooleanField(default=True) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def get_avatar_context(): | ||
return { | ||
'defaultSkinTone': 'AE7242', | ||
|
@@ -66,36 +67,42 @@ def get_avatar_context(): | |
'name': 'Ears', | ||
'title': 'Pick ears shape', | ||
'options': ('0', '1', '2', '3') | ||
}, { | ||
'name': 'Clothing', | ||
'title': 'Pick your clothing', | ||
'options': ('cardigan', 'hoodie', 'knitsweater', 'plaid', 'shirt', 'shirtsweater') | ||
}, { | ||
'name': 'Hair Style', | ||
'title': 'Pick a hairstyle', | ||
'options': (['None', '0'], ['None', '1'], ['None', '2'], ['None', '3'], ['None', '4'], ['5', 'None'], | ||
['6-back', '6-front'], ['7-back', '7-front'], ['8-back', '8-front']) | ||
}, { | ||
'name': 'Facial Hair', | ||
'title': 'Pick a facial hair style', | ||
'options': ( | ||
'Mustache-0', 'Mustache-1', 'Mustache-2', 'Mustache-3', 'Beard-0', 'Beard-1', 'Beard-2', 'Beard-3' | ||
) | ||
}, { | ||
'name': 'Accessories', | ||
'title': 'Pick your accessories', | ||
'options': (['Glasses-0'], ['Glasses-1'], ['Glasses-2'], ['Glasses-3'], ['Glasses-4'], [ | ||
'HatShort-backwardscap' | ||
], ['HatShort-ballcap'], ['HatShort-headphones'], ['HatShort-shortbeanie'], ['HatShort-tallbeanie'], | ||
['Earring-0'], ['Earring-1'], ['EarringBack-2', 'Earring-2'], ['Earring-3'], ['Earring-4']) | ||
}, { | ||
'name': 'Background', | ||
'title': 'Pick a background color', | ||
'options': ( | ||
'25E899', '9AB730', '00A55E', '3FCDFF', '3E00FF', '8E2ABE', 'D0021B', 'F9006C', 'FFCE08', 'F8E71C', | ||
'15003E', 'FFFFFF' | ||
) | ||
}], | ||
}, | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you revert the indent change here? |
||
'name': 'Clothing', | ||
'title': 'Pick your clothing', | ||
'options': ('cardigan', 'hoodie', 'knitsweater', 'plaid', 'shirt', 'shirtsweater') | ||
}, | ||
{ | ||
'name': 'Hair Style', | ||
'title': 'Pick a hairstyle', | ||
'options': (['None', '0'], ['None', '1'], ['None', '2'], ['None', '3'], ['None', '4'], | ||
['5', 'None'], ['6-back', '6-front'], ['7-back', '7-front'], ['8-back', '8-front']) | ||
}, | ||
{ | ||
'name': 'Facial Hair', | ||
'title': 'Pick a facial hair style', | ||
'options': ( | ||
'Mustache-0', 'Mustache-1', 'Mustache-2', 'Mustache-3', 'Beard-0', 'Beard-1', 'Beard-2', | ||
'Beard-3' | ||
) | ||
}, | ||
{ | ||
'name': 'Accessories', | ||
'title': 'Pick your accessories', | ||
'options': (['Glasses-0'], ['Glasses-1'], ['Glasses-2'], ['Glasses-3'], ['Glasses-4'], | ||
['HatShort-backwardscap'], ['HatShort-ballcap'], ['HatShort-headphones'], | ||
['HatShort-shortbeanie'], ['HatShort-tallbeanie'], ['Earring-0'], ['Earring-1'], | ||
['EarringBack-2', 'Earring-2'], ['Earring-3'], ['Earring-4']) | ||
}, | ||
{ | ||
'name': 'Background', | ||
'title': 'Pick a background color', | ||
'options': ( | ||
'25E899', '9AB730', '00A55E', '3FCDFF', '3E00FF', '8E2ABE', 'D0021B', 'F9006C', 'FFCE08', | ||
'F8E71C', '15003E', 'FFFFFF' | ||
) | ||
}], | ||
} | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -270,30 +270,31 @@ def funnel(request): | |
'title': 'web => bounties_posted => bounties_fulfilled', | ||
'keys': ['sessions', 'bounties_alltime', 'bounties_fulfilled', ], | ||
'data': [] | ||
}, { | ||
'title': 'web => bounties_posted => bounties_fulfilled (detail)', | ||
'keys': [ | ||
'sessions', 'bounties_alltime', 'bounties_started_total', 'bounties_submitted_total', 'bounties_done_total', | ||
'bounties_expired_total', 'bounties_cancelled_total', | ||
], | ||
'data': [] | ||
}, { | ||
'title': 'web session => email_subscribers', | ||
'keys': ['sessions', 'email_subscribers', ], | ||
'data': [] | ||
}, { | ||
'title': 'web session => slack', | ||
'keys': ['sessions', 'slack_users', ], | ||
'data': [] | ||
}, { | ||
'title': 'web session => create dev grant', | ||
'keys': ['sessions', 'dev_grant', ], | ||
'data': [] | ||
}, { | ||
'title': 'email funnel', | ||
'keys': ['email_processed', 'email_open', 'email_click', ], | ||
'data': [] | ||
}, ] | ||
}, | ||
{ | ||
'title': 'web => bounties_posted => bounties_fulfilled (detail)', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you revert the indent change here? |
||
'keys': [ | ||
'sessions', 'bounties_alltime', 'bounties_started_total', 'bounties_submitted_total', | ||
'bounties_done_total', 'bounties_expired_total', 'bounties_cancelled_total', | ||
], | ||
'data': [] | ||
}, { | ||
'title': 'web session => email_subscribers', | ||
'keys': ['sessions', 'email_subscribers', ], | ||
'data': [] | ||
}, { | ||
'title': 'web session => slack', | ||
'keys': ['sessions', 'slack_users', ], | ||
'data': [] | ||
}, { | ||
'title': 'web session => create dev grant', | ||
'keys': ['sessions', 'dev_grant', ], | ||
'data': [] | ||
}, { | ||
'title': 'email funnel', | ||
'keys': ['email_processed', 'email_open', 'email_click', ], | ||
'data': [] | ||
}, ] | ||
|
||
for funnel in range(0, len(funnels)): | ||
keys = funnels[funnel]['keys'] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -302,4 +302,3 @@ class EmailSupressionList(SuperModel): | |
|
||
def __str__(self): | ||
return f"{self.email}" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍