Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix module name
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:1cb7348a703bfd5d7d99234df7c9d49f3171159d
User & Date: brandon 2018-12-06 21:40:40
Context
2018-12-10
02:01
Refactor story-adding and coverart-importing code, fixing some cases of missing coverart in the process check-in: 677361353d user: brandon tags: trunk
2018-12-06
21:40
Fix module name check-in: 1cb7348a70 user: brandon tags: trunk
21:36
Create the database directory if it does not yet exist. check-in: dc839bab91 user: brandon tags: trunk
Changes

Changes to src/grotesque/db/addremove.py.

164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
            genre_id = query.insert_genre(conn, genre.lower())
        else:
            genre_id = genre_row["id"]
        query.add_genre_to_story(conn, genre_id, story_id)


def add_story_cover(conn, story_id, filename, ific_story, fetch_coverart):
    orig_cover = db.query.select_cover_by_story(conn, story_id)
    if filename is not None:
        try:
            cover = treatyofbabel.get_cover(filename)
        except BabelError:
            cover = None
        if cover is not None:
            if orig_cover is not None:







|







164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
            genre_id = query.insert_genre(conn, genre.lower())
        else:
            genre_id = genre_row["id"]
        query.add_genre_to_story(conn, genre_id, story_id)


def add_story_cover(conn, story_id, filename, ific_story, fetch_coverart):
    orig_cover = query.select_cover_by_story(conn, story_id)
    if filename is not None:
        try:
            cover = treatyofbabel.get_cover(filename)
        except BabelError:
            cover = None
        if cover is not None:
            if orig_cover is not None: