adds a working inventory
This commit is contained in:
@@ -66,8 +66,10 @@ impl<'q> DbApi<'q> {
|
||||
Ok(schema::players::table.load::<models::Player>(self.0)?)
|
||||
}
|
||||
/// Fetch the inventory of items
|
||||
///
|
||||
/// TODO: remove limit used for debug
|
||||
pub fn fetch_inventory(self) -> QueryResult<Vec<models::Item>> {
|
||||
Ok(schema::items::table.load::<models::Item>(self.0)?)
|
||||
Ok(schema::items::table.limit(100).load::<models::Item>(self.0)?)
|
||||
}
|
||||
/// Fetch all existing claims
|
||||
pub fn fetch_claims(self) -> QueryResult<Vec<models::Claim>> {
|
||||
|
||||
Reference in New Issue
Block a user