Skip to content

commit atm - #140

Open
kerenkay wants to merge 5 commits into
osherdp:masterfrom
kerenkay:feature/ATM
Open

kerenkay wants to merge 5 commits into
osherdp:masterfrom
kerenkay:feature/ATM

Conversation

@kerenkay

@kerenkay kerenkay commented Apr 5, 2020

Copy link
Copy Markdown
Collaborator

No description provided.

@kerenkay kerenkay closed this Apr 5, 2020
@kerenkay kerenkay reopened this Apr 5, 2020
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
Comment thread ATM.py Outdated
@rfire01

rfire01 commented Apr 6, 2020

Copy link
Copy Markdown
Collaborator

make sure flake 8 pass

Comment thread ATM.py
Comment thread ATM.py
Comment thread ATM.py
Comment thread ATM.py
Comment thread ATM.py
with open(filename, 'r') as file:
for line in file:
details = line.strip().split(' ')
atm[details[ID_INDEX]] = details[INDEX_START_OF_PASSWORD_AND_BALANCE:]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Saving the data as list isn't a good practice.
What happen if you change the way the data look? you need to change everywhere you use it the indexes of each part.
Instead the only place that should be effect is the read file function

Comment thread ATM.py
Comment thread ATM.py
Comment thread ATM.py
Comment thread ATM.py
Comment thread ATM.py
Comment thread ATM.py
Comment thread ATM.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants