Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
eis
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 44784a36
authored
Jul 12, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Refactor data retrieval in Views class to use mapped attributes for improved clarity
1 parent
2d04ace0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
eispajak/views/pcpd.py
eispajak/views/pcpd.py
View file @
44784a3
...
...
@@ -174,11 +174,11 @@ class Views(BaseView):
amt
=
trx
=
acc
=
accTrx
=
0
for
r
in
qry
:
mapped
=
r
.
_mapping
step
=
r
.
get
(
step
,
""
)
bayar
=
r
.
get
(
"bayar"
,
0
)
denda
=
r
.
get
(
"denda"
,
0
)
step
=
mapped
.
get
(
"step"
,
""
)
bayar
=
mapped
.
get
(
"bayar"
,
0
)
denda
=
mapped
.
get
(
"denda"
,
0
)
pokok
=
bayar
-
denda
tx
=
r
.
get
(
"trx"
,
0
)
tx
=
mapped
.
get
(
"trx"
,
0
)
daily
.
append
((
step
,
pokok
))
dailyTrx
.
append
((
step
,
tx
))
acc
+=
pokok
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment