Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Implemented login system driver #76

Merged
merged 11 commits into from
Oct 6, 2024
Merged

Conversation

MitchellJC
Copy link
Collaborator

@MitchellJC MitchellJC commented Oct 4, 2024

Most changes in data_structures are from black formatting on save. There are two new methods for a simpler message display and waiting for a button press at the bottom of HardwareComponents. Picture and Face class have been deleted as they are no longer used anywhere.

Copy link
Collaborator

@avg-lebesgue-enjoyer avg-lebesgue-enjoyer left a comment

Choose a reason for hiding this comment

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

pls address comments about docstrings, and ensuring that hardware is buried within the if __name__ == "__main__": guard

client/drivers/data_structures.py Show resolved Hide resolved
client/drivers/login_system.py Show resolved Hide resolved
client/drivers/data_structures.py Show resolved Hide resolved
Make a valid Picture.
Args:
message: Message to send to the user
message_time: Time to sleep for after displaying message.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should clarify that this is in units of SECONDS (other code is in units of milliseconds)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

agreed, done

client/drivers/data_structures.py Show resolved Hide resolved
client/drivers/data_structures.py Show resolved Hide resolved
return_me.matched = True
return_me.user_id = user_id
return return_me
def _clear_buttons(self) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

docstring pls

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

client/drivers/login_system.py Show resolved Hide resolved
@@ -575,6 +398,7 @@ def handle_sniff_feedback(auspost: ControlledData) -> bool:


## LAUNCH
hardware = initialise_hardware()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be inside the if __name__ == "__main__": guard, or buried somewhere within.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Copy link
Collaborator

@avg-lebesgue-enjoyer avg-lebesgue-enjoyer left a comment

Choose a reason for hiding this comment

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

lgtm

@MitchellJC MitchellJC merged commit 063e708 into add-login-system Oct 6, 2024
2 checks passed
@MitchellJC MitchellJC deleted the mitch-register-driver branch October 6, 2024 02:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants