diff --git a/explainshell/store.py b/explainshell/store.py index 505a7448..4e7a3247 100644 --- a/explainshell/store.py +++ b/explainshell/store.py @@ -5,7 +5,8 @@ import collections import re import logging -from pprint import pprint + +# from pprint import pprint import pymongo from bson import ObjectId @@ -69,7 +70,7 @@ def to_store(self): def __repr__(self): t = self.clean_text() t = t[: min(20, t.find("\n"))].lstrip() - return "" % (self.idx, self.section, t) + return f"" def __eq__(self, other): if not other: @@ -108,6 +109,8 @@ def opts(self): def from_store(cls, d): p = Paragraph.from_store(d) + # logger.debug(str(vars(d))) + return cls( p, d["short"], @@ -128,7 +131,7 @@ def to_store(self): return d def __str__(self): - return "(%s)" % ", ".join([str(x) for x in self.opts]) + return "(" + ", ".join([str(x) for x in self.opts]) + ")" def __repr__(self): return f"