mirror of
https://github.com/simon987/opendirectories-bot-2.git
synced 2025-04-10 14:06:41 +00:00
Formatting fix (again...)
This commit is contained in:
parent
7a33e7796d
commit
4901236705
@ -90,11 +90,11 @@ class OdDatabase:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def format_search_hits(hits, query):
|
def format_search_hits(hits, query):
|
||||||
|
|
||||||
message = str(hits["hits"]["total"]) + " matches found in " + str(hits["took"]) + "ms for query `" + query + "`"
|
message = "**" + str(hits["hits"]["total"]) + "** matches found in " + str(hits["took"]) + "ms for query `" + query + "`"
|
||||||
if hits["hits"]["total"] > 0:
|
if hits["hits"]["total"] > 0:
|
||||||
message += ": \n\n"
|
message += ": \n\n"
|
||||||
message += "File | Size | Date \n"
|
message += "File | Size \n"
|
||||||
message += ":-- | :-- | --: \n"
|
message += ":-- | --: \n"
|
||||||
|
|
||||||
for hit in hits["hits"]["hits"]:
|
for hit in hits["hits"]["hits"]:
|
||||||
src = hit["_source"]
|
src = hit["_source"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user