Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-iso8583
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 2cc21a91
authored
Jun 30, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Perubahan rumus StanGenerator
1 parent
31d6a4df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
opensipkd/iso8583/network/doc.py
opensipkd/iso8583/network/doc.py
View file @
2cc21a9
...
@@ -2,6 +2,7 @@ from datetime import (
...
@@ -2,6 +2,7 @@ from datetime import (
datetime
,
datetime
,
date
,
date
,
)
)
from
random
import
randrange
from
ISO8583.ISOErrors
import
BitNotSet
from
ISO8583.ISOErrors
import
BitNotSet
from
opensipkd.string
import
(
from
opensipkd.string
import
(
DateTimeVar
,
DateTimeVar
,
...
@@ -26,7 +27,7 @@ class StanGenerator:
...
@@ -26,7 +27,7 @@ class StanGenerator:
def
create
(
self
):
def
create
(
self
):
kini
=
date
.
today
()
kini
=
date
.
today
()
if
kini
==
self
.
tgl
:
if
kini
==
self
.
tgl
:
self
.
seq
+=
1
self
.
seq
+=
randrange
(
1
,
100
)
else
:
else
:
self
.
tgl
=
kini
self
.
tgl
=
kini
self
.
reset
()
self
.
reset
()
...
...
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