prophecy¶
A prophecy.
-
class
prophecypracticum.engine.prophecy.
Prophecy
(date_of_prophecy: datetime.datetime, prophecy_text: str = '', prophecy_photo: str = '', feedback_rating: int = 0, feedback_text: str = '')¶ Bases:
object
The Prophecy Object.
feedback_rating is initialized to 0 as a check of whether feedback has been input.
- Parameters
self.date_of_prophecy – Date and time prophecy is created.
self.prophecy_text – If the prophecy is text, it is stored here.
self.prophecy_photo – If the prophecy is a photo, this is the path to find the photo.
self.feedback_rating – Rating on a scale of 1-5 of how relevant the prophecy was.
self.feedback_text – If feedback was given on the prophecy, store it as text here.
-
date_of_prophecy
: datetime = None¶
-
feedback_rating
: int = None¶
-
feedback_text
: str = None¶
-
get_feedback_rating
() → int¶ Return the feedback rating.
- Returns
The feedback rating.
-
get_feedback_text
() → str¶ Return feedback text.
- Returns
Feedback text.
-
get_photo_location
() → str¶ Return photo location on disk.
- Returns
The location of the photo on the disk.
-
get_text_prophecy
() → str¶ Return prophecy text.
- Returns
The text of the prophecy
-
modify_photo_prophecy
(new_photo_location: str) → None¶ Point to a new photo prophecy location.
- Parameters
new_photo_location – The new location for the photo.
-
modify_text_prophecy
(new_prophecy: str) → None¶ Modify the text of the prophecy.
- Parameters
new_prophecy – The text of the new prophecy.
-
prophecy_photo
: str = None¶
-
prophecy_text
: str = None¶
-
set_feedback_rating
(rating: int) → None¶ Set feedback rating for the prophecy.
- Parameters
rating – A 1-5 number representing the rating
-
set_feedback_text
(new_feedback_text: str) → None¶ Set feedback text.
- Parameters
new_feedback_text – Feedback text for the prophecy.