Skip to content

Add oopsie check for student#219

Closed
isaiah-andrade wants to merge 1 commit into
underground-software:masterfrom
isaiah-andrade:oopsie_tracking
Closed

Add oopsie check for student#219
isaiah-andrade wants to merge 1 commit into
underground-software:masterfrom
isaiah-andrade:oopsie_tracking

Conversation

@isaiah-andrade

Copy link
Copy Markdown

This commit adds an 'oopsie' command to the parser with a required '-u/--username' argument. It also adds an 'oopsie' function to check if a specific student has used an oopsie. If they have, the assignment name and timestamp is displayed; otherwise it displays the student has not used their oopsie. This attempts to address issue #218

This commit adds an 'oopsie' command to the parser with a required
'-u/--username' argument. It also adds an 'oopsie' function to check if a
specific student has used an oopsie. If they have, the assignment name
and timestamp is displayed; otherwise it displays the student has not used
their oopsie.

Signed-off-by: Isaiah Andrade <isaiah_andrade@fall2024-uml.kdlp.underground.software>

@theyoyojo theyoyojo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

does not work

  File "/usr/local/share/mailman/./inspector.py", line 65, in oopsie
    query = db.Oopsie.get(db.Oopsie.user == username)
            ^^^^^^^^^
AttributeError: module 'db' has no attribute 'Oopsie'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/share/mailman/./inspector.py", line 74, in <module>
    main()
  File "/usr/local/share/mailman/./inspector.py", line 41, in main
    subparser_func(**kwargs)
  File "/usr/local/share/mailman/./inspector.py", line 69, in oopsie
    except peewee.DoesNotExist:
           ^^^^^^
NameError: name 'peewee' is not defined

@charliemirabile

Copy link
Copy Markdown
Contributor

superseded by #229

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.

3 participants