Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 37a0b573
authored
Sep 19, 2024
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan dmy minor
1 parent
534d364b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
63 deletions
opensipkd/tools/__init__.py
opensipkd/tools/pbb.py
requirements.txt
opensipkd/tools/__init__.py
View file @
37a0b57
...
@@ -144,7 +144,7 @@ def get_params(params, alternate=None):
...
@@ -144,7 +144,7 @@ def get_params(params, alternate=None):
def
devel
():
def
devel
():
settings
=
get_settings
()
settings
=
get_settings
()
is_devel
=
'devel'
in
settings
and
settings
[
'devel'
]
and
True
or
False
is_devel
=
'devel'
in
settings
and
settings
[
'devel'
]
and
True
or
False
print
(
"DEBUG>>"
,
is_devel
)
log
.
debug
(
f
"Devel: {is_devel}"
)
return
is_devel
return
is_devel
...
@@ -237,6 +237,8 @@ def dmy(tgl):
...
@@ -237,6 +237,8 @@ def dmy(tgl):
"""
"""
Conversi dari date to string
Conversi dari date to string
"""
"""
if
not
tgl
:
return
"00-00-0000"
return
tgl
.
strftime
(
'
%
d-
%
m-
%
Y'
)
return
tgl
.
strftime
(
'
%
d-
%
m-
%
Y'
)
...
...
opensipkd/tools/pbb.py
View file @
37a0b57
...
@@ -277,10 +277,13 @@ def nop_to_id(row):
...
@@ -277,10 +277,13 @@ def nop_to_id(row):
def
query_nop
(
table
):
def
query_nop
(
table
):
return
func
.
concat
(
table
.
kd_propinsi
,
'.'
,
table
.
kd_dati2
,
'-'
,
return
func
.
concat
(
table
.
kd_propinsi
,
func
.
concat
(
'.'
,
table
.
kd_kecamatan
,
'.'
,
table
.
kd_kelurahan
,
'-'
,
func
.
concat
(
table
.
kd_dati2
,
func
.
concat
(
'-'
,
table
.
kd_blok
,
'.'
,
table
.
no_urut
,
'-'
,
func
.
concat
(
table
.
kd_kecamatan
,
func
.
concat
(
'.'
,
table
.
kd_jns_op
)
func
.
concat
(
table
.
kd_kelurahan
,
func
.
concat
(
'-'
,
func
.
concat
(
table
.
kd_blok
,
func
.
concat
(
'.'
,
func
.
concat
(
table
.
no_urut
,
func
.
concat
(
'-'
,
table
.
kd_jns_op
))))))))))))
# JEnis REstitusi Kompensasi
# JEnis REstitusi Kompensasi
...
...
requirements.txt
View file @
37a0b57
setuptools>=40.8.0
pip~=18.1
WebOb>=1.8.7
certifi>=2021.5.30
pyramid>=2.0
pyramid_rpc
venusian>=3.0.0
translationstring>=1.4
plaster>=1.0
hupper>=1.10.3
urllib3>=1.26.6
idna>=3.2
SQLAlchemy~=1.4.25
requests~=2.26.0
colander~=1.8.3
deform~=2.0.15
transaction~=3.0.1
python-dateutil~=2.8.2
google~=3.0.0
alembic~=1.7.3
pytz~=2021.3
py~=1.10.0
colorama~=0.4.4
Pillow~=8.3.2
lxml~=4.6.3
beautifulsoup4~=4.10.0
soupsieve~=2.2.1
wheel~=0.37.0
rsa~=4.7.2
pyasn1~=0.4.8
attrs~=21.2.0
Mako~=1.1.5
Babel~=2.9.1
Beaker~=1.11.0
Pygments~=2.10.0
MarkupSafe~=2.0.1
six~=1.16.0
Genshi~=0.7.5
toml~=0.10.2
Chameleon~=3.9.1
peppercorn~=0.6
iso8601~=0.1.16
cachetools~=4.2.4
google-api-python-client~=2.23.0
pytest~=6.2.5
pluggy~=1.0.0
iniconfig~=1.1.1
passlib~=1.7.4
greenlet~=1.1.2
pyparsing~=2.4.7
httplib2~=0.19.1
icecream~=2.1.1
executing~=0.8.2
paginate~=0.5.6
waitress~=2.0.0
asttokens~=2.0.5
uritemplate~=3.0.1
zipp~=3.6.0
\ No newline at end of file
\ No newline at end of file
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