Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-cellframe
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
cellframe
python-cellframe
Merge requests
!410
Hotfix 13315
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Hotfix 13315
hotfix-13315
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
alexey.stratulat
requested to merge
hotfix-13315
into
master
6 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
[*] Fixed handling of getting expire time voting.
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
f98473e6
1 commit,
6 months ago
1 file
+
3
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/cellframe-sdk/services/vote/src/wrapping_dap_chain_net_srv_vote_info.c
+
3
−
2
Options
@@ -59,8 +59,9 @@ PyObject *wrapping_dap_chain_net_srv_vote_get_options(PyObject *self, void *clos
PyObject
*
wrapping_dap_chain_net_srv_vote_get_expire_datetime
(
PyObject
*
self
,
void
*
closure
)
{
(
void
)
closure
;
PyDateTime_IMPORT
;
uint64_t
l_ts_create
=
((
PyDapChainDatumObject
*
)
self
)
->
datum
->
header
.
ts_create
/
1000000000
;
PyObject
*
obj_ts_long
=
Py_BuildValue
(
"(k)"
,
l_ts_create
);
PyDapChainNetSrvVoteInfoObject
*
l_info
=
(
PyDapChainNetSrvVoteInfoObject
*
)
self
;
uint64_t
l_ts_expire
=
l_info
->
info
->
expired
;
PyObject
*
obj_ts_long
=
Py_BuildValue
(
"(k)"
,
l_ts_expire
);
PyObject
*
obj_ts
=
PyDateTime_FromTimestamp
(
obj_ts_long
);
return
obj_ts
;
}
Loading