Browse Source

add a spoiler warning

master
Dimitri Merejkowsky 5 years ago
parent
commit
4c792f8d91
2 changed files with 5 additions and 2 deletions
  1. +4
    -2
      sources/marvel/marvel_05.py
  2. +1
    -0
      sources/marvel/marvel_06.py

+ 4
- 2
sources/marvel/marvel_05.py View File

@@ -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 View File

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