Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import dataset | ||
|
||
class Queue: | ||
"""Holds the incoming submissions until they can be processed. For now it is a simple datastore""" | ||
|
||
def __init__(): | ||
pass | ||
def __init__(self,db_string): | ||
self.db=dataset.connect(db_string) | ||
|
||
def accept(tape_record): | ||
pass | ||
def accept(self,tape_dict): | ||
self.db["tapes"].insert(tape_dict) | ||
self.db["debts"].update(dict(user=tape_dict.assigned,)) | ||
|
||
def get_debts(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters