fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add basic login.
[wolnelektury.git]
/
src
/
pz
/
bank.py
diff --git
a/src/pz/bank.py
b/src/pz/bank.py
index
9749264
..
99f7d85
100644
(file)
--- a/
src/pz/bank.py
+++ b/
src/pz/bank.py
@@
-29,6
+29,7
@@
def bank_export(modeladmin, request, queryset):
def parse_payment_feedback(f):
lines = csv.reader(StringIO(f.read().decode('cp1250')))
for line in lines:
def parse_payment_feedback(f):
lines = csv.reader(StringIO(f.read().decode('cp1250')))
for line in lines:
+ if not line: continue
print(line)
assert line[0] in ('1', '2')
if line[0] == '1':
print(line)
assert line[0] in ('1', '2')
if line[0] == '1':
@@
-49,6
+50,7
@@
def parse_export_feedback(f):
# The AU file.
lines = csv.reader(StringIO(f.read().decode('cp1250')))
for line in lines:
# The AU file.
lines = csv.reader(StringIO(f.read().decode('cp1250')))
for line in lines:
+ if not line: continue
payment_id = line[0]
status = int(line[8])
comment = line[9]
payment_id = line[0]
status = int(line[8])
comment = line[9]