Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
657ba3f6
Commit
657ba3f6
authored
Jul 31, 2013
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved displaying call history entries
parent
1a416249
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
history.py
blink/history.py
+5
-3
No files found.
blink/history.py
View file @
657ba3f6
...
@@ -119,14 +119,16 @@ class HistoryEntry(object):
...
@@ -119,14 +119,16 @@ class HistoryEntry(object):
def
__unicode__
(
self
):
def
__unicode__
(
self
):
result
=
unicode
(
self
.
remote_identity
)
result
=
unicode
(
self
.
remote_identity
)
if
self
.
call_time
:
if
self
.
call_time
:
days
=
(
date
.
today
()
-
self
.
call_time
.
date
())
.
days
call_date
=
self
.
call_time
.
date
()
if
days
==
0
:
today
=
date
.
today
()
days
=
(
today
-
call_date
)
.
days
if
call_date
==
today
:
result
+=
self
.
call_time
.
strftime
(
" at
%
H:
%
M"
)
result
+=
self
.
call_time
.
strftime
(
" at
%
H:
%
M"
)
elif
days
==
1
:
elif
days
==
1
:
result
+=
self
.
call_time
.
strftime
(
" Yesterday at
%
H:
%
M"
)
result
+=
self
.
call_time
.
strftime
(
" Yesterday at
%
H:
%
M"
)
elif
days
<
7
:
elif
days
<
7
:
result
+=
self
.
call_time
.
strftime
(
" on
%
A"
)
result
+=
self
.
call_time
.
strftime
(
" on
%
A"
)
elif
days
<
365
:
elif
call_date
.
year
==
today
.
year
:
result
+=
self
.
call_time
.
strftime
(
" on
%
B
%
d"
)
result
+=
self
.
call_time
.
strftime
(
" on
%
B
%
d"
)
else
:
else
:
result
+=
self
.
call_time
.
strftime
(
" on
%
Y-
%
m-
%
d"
)
result
+=
self
.
call_time
.
strftime
(
" on
%
Y-
%
m-
%
d"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment