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:
|
||||
email = results.group(0)
|
||||
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]
|
||||
if not profiles:
|
||||
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
|
||||
color = '~FB'
|
||||
if warn_color:
|
||||
if seconds >= 1:
|
||||
if seconds >= 5:
|
||||
color = '~FR'
|
||||
elif seconds > .2:
|
||||
elif seconds > 1:
|
||||
color = '~SB~FK'
|
||||
time_elapsed = "[%s%.4ss~SB] " % (
|
||||
color,
|
||||
|
|
Loading…
Add table
Reference in a new issue