Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
1401a541
Commit
1401a541
authored
5 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[fix] fix minimum/maximum time period for tx history
Set last rolling month as default time period
parent
c2bcf711
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!775
0.50.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sakia/gui/navigation/txhistory/model.py
+1
-1
1 addition, 1 deletion
src/sakia/gui/navigation/txhistory/model.py
src/sakia/gui/navigation/txhistory/view.py
+2
-2
2 additions, 2 deletions
src/sakia/gui/navigation/txhistory/view.py
with
3 additions
and
3 deletions
src/sakia/gui/navigation/txhistory/model.py
+
1
−
1
View file @
1401a541
...
@@ -100,7 +100,7 @@ class TxHistoryModel(QObject):
...
@@ -100,7 +100,7 @@ class TxHistoryModel(QObject):
:return: minimum and maximum datetime
:return: minimum and maximum datetime
"""
"""
minimum_datetime
=
QDateTime
()
minimum_datetime
=
QDateTime
()
minimum_datetime
.
setTime_t
(
1488322800
)
#
First of may 2017
minimum_datetime
.
setTime_t
(
1488322800
)
#
28 of february 2017 23:00
tomorrow_datetime
=
QDateTime
().
currentDateTime
().
addDays
(
1
)
tomorrow_datetime
=
QDateTime
().
currentDateTime
().
addDays
(
1
)
return
minimum_datetime
,
tomorrow_datetime
return
minimum_datetime
,
tomorrow_datetime
...
...
This diff is collapsed.
Click to expand it.
src/sakia/gui/navigation/txhistory/view.py
+
2
−
2
View file @
1401a541
...
@@ -19,6 +19,8 @@ class TxHistoryView(QWidget, Ui_TxHistoryWidget):
...
@@ -19,6 +19,8 @@ class TxHistoryView(QWidget, Ui_TxHistoryWidget):
lambda
c
:
self
.
stacked_widget
.
setCurrentWidget
(
self
.
transfer_view
)
lambda
c
:
self
.
stacked_widget
.
setCurrentWidget
(
self
.
transfer_view
)
)
)
self
.
spin_page
.
setMinimum
(
1
)
self
.
spin_page
.
setMinimum
(
1
)
self
.
date_from
.
setDateTime
(
QDateTime
().
currentDateTime
().
addMonths
(
-
1
))
self
.
date_to
.
setDateTime
(
QDateTime
().
currentDateTime
().
addDays
(
1
))
def
get_time_frame
(
self
):
def
get_time_frame
(
self
):
"""
"""
...
@@ -52,11 +54,9 @@ class TxHistoryView(QWidget, Ui_TxHistoryWidget):
...
@@ -52,11 +54,9 @@ class TxHistoryView(QWidget, Ui_TxHistoryWidget):
:param PyQt5.QtCore.QDateTime maximum: the maximum
:param PyQt5.QtCore.QDateTime maximum: the maximum
"""
"""
self
.
date_from
.
setMinimumDateTime
(
minimum
)
self
.
date_from
.
setMinimumDateTime
(
minimum
)
self
.
date_from
.
setDateTime
(
minimum
)
self
.
date_from
.
setMaximumDateTime
(
QDateTime
().
currentDateTime
())
self
.
date_from
.
setMaximumDateTime
(
QDateTime
().
currentDateTime
())
self
.
date_to
.
setMinimumDateTime
(
minimum
)
self
.
date_to
.
setMinimumDateTime
(
minimum
)
self
.
date_to
.
setDateTime
(
maximum
)
self
.
date_to
.
setMaximumDateTime
(
maximum
)
self
.
date_to
.
setMaximumDateTime
(
maximum
)
def
set_max_pages
(
self
,
pages
):
def
set_max_pages
(
self
,
pages
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment