Quellcode durchsuchen

add a spoiler warning

master
Dimitri Merejkowsky vor 5 Jahren
Ursprung
Commit
4c792f8d91
2 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen
  1. +4
    -2
      sources/marvel/marvel_05.py
  2. +1
    -0
      sources/marvel/marvel_06.py

+ 4
- 2
sources/marvel/marvel_05.py Datei anzeigen

@@ -53,7 +53,8 @@ class CharacterDescriptionGetter(InformationRetriever):

def get_character_description(self, name):
params = {"name": name}
body, attribution = self.make_request("/characters", params)
body, attribution = self.make_request("/characters",
params)
first_result = body["data"]["results"][0]
description = first_result["description"]
return (description, attribution)
@@ -66,7 +67,8 @@ class CreatorNumberOfSeriesGetter(InformationRetriever):
"firstName": first_name,
"lastName": last_name,
}
body, attribution = self.make_request("/creators", params)
body, attribution = self.make_request("/creators",
params)
first_result = body["data"]["results"][0]
return (first_result["series"]["available"], attribution)



+ 1
- 0
sources/marvel/marvel_06.py Datei anzeigen

@@ -1,3 +1,4 @@
# WARNING: Don't read this unless you want to get spoiled!
import abc
import hashlib
import requests