mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Bumping log colors.
This commit is contained in:
parent
0e05ed6985
commit
3de497d57e
2 changed files with 3 additions and 3 deletions
|
@ -1226,7 +1226,7 @@ def find_friends(request):
|
||||||
if results:
|
if results:
|
||||||
email = results.group(0)
|
email = results.group(0)
|
||||||
profiles = MSocialProfile.objects.filter(email__iexact=email)[:limit]
|
profiles = MSocialProfile.objects.filter(email__iexact=email)[:limit]
|
||||||
if query.isdigit() and request.user.is_staff:
|
if not profiles and query.isdigit() and request.user.is_staff:
|
||||||
profiles = MSocialProfile.objects.filter(user_id=int(query))[:limit]
|
profiles = MSocialProfile.objects.filter(user_id=int(query))[:limit]
|
||||||
if not profiles:
|
if not profiles:
|
||||||
profiles = MSocialProfile.objects.filter(username__iexact=query)[:limit]
|
profiles = MSocialProfile.objects.filter(username__iexact=query)[:limit]
|
||||||
|
|
|
@ -37,9 +37,9 @@ def user(u, msg, request=None, warn_color=True):
|
||||||
seconds = time.time() - request.start_time
|
seconds = time.time() - request.start_time
|
||||||
color = '~FB'
|
color = '~FB'
|
||||||
if warn_color:
|
if warn_color:
|
||||||
if seconds >= 1:
|
if seconds >= 5:
|
||||||
color = '~FR'
|
color = '~FR'
|
||||||
elif seconds > .2:
|
elif seconds > 1:
|
||||||
color = '~SB~FK'
|
color = '~SB~FK'
|
||||||
time_elapsed = "[%s%.4ss~SB] " % (
|
time_elapsed = "[%s%.4ss~SB] " % (
|
||||||
color,
|
color,
|
||||||
|
|
Loading…
Add table
Reference in a new issue