Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/s/y/SynoDLNAtrakt-HEAD/synodlnatrakt/main.py   SynoDLNAtrakt(Download)
            logger.debug(u"{0} seems to be an empty TVShow...".format(m.name))
            db.session.delete(m)
    db.session.commit()
 
def restart():
            db.session.merge(movie)
 
    db.session.commit()
 
    traktratings = trakt.getRatings("movie")
                result.rating = a["rating_advanced"]
                db.session.merge(result)
                db.session.commit()
 
    update_series()
                        logger.info(
                            u"marked {0}: {2}x{3} \"{1}\" as watched".format(show["title"], a.name, a.season, a.episode))
                db.session.commit()
 
    traktseries = trakt.getRatings("series")
                myep.rating = result["rating_advanced"]
                db.session.merge(myep)
                db.session.commit()
 
    logger.info(u"TRAKT SYNC ENDED")

src/s/y/SynoDLNAtrakt-HEAD/synodlnatrakt/web.py   SynoDLNAtrakt(Download)
        result = db.session.query(db.Movies).filter(db.Movies.synoindex == synoindex).first()
    db.session.delete(result)
    db.session.commit()
    return {"status": "success"}
 
    content.rating = rating
    db.session.merge(content)
    db.session.commit()
    answer = trakt.rate(content, rating, returnStatus=True)
    return answer

src/s/y/SynoDLNAtrakt-HEAD/synodlnatrakt/mediaelement.py   SynoDLNAtrakt(Download)
            # dir(insert)
            db.session.merge(insert)
            db.session.commit()
            logger.debug(u"{0} saved to database".format(self.path))
 
 
            db.session.merge(insert)
            db.session.commit()
            logger.debug(u"{0} saved to database".format(self.path))
 

src/s/y/SynoDLNAtrakt-HEAD/synodlnatrakt/helper.py   SynoDLNAtrakt(Download)
        result.scrobbled = 0
    db.session.merge(result)
    db.session.commit()
    images.get_images(imdb_id, "movie")
    ui.notifications.success(movie.title, 'updated {0} ({1}) with {2} ({3})'.format(