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

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

src/s/y/SynoDLNAtrakt-HEAD/synodlnatrakt/main.py   SynoDLNAtrakt(Download)
            if not movie.lastseen:
                movie.lastseen = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
            db.session.merge(movie)
 
    db.session.commit()
                logger.info(u"Setting rating for {0} to {1}".format(a["title"], a["rating_advanced"]))
                result.rating = a["rating_advanced"]
                db.session.merge(result)
                db.session.commit()
 
                        if not a.lastseen:
                            a.lastseen = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
                        db.session.merge(a)
                        logger.info(
                            u"marked {0}: {2}x{3} \"{1}\" as watched".format(show["title"], a.name, a.season, a.episode))
                logger.debug(u"Setting rating for {0} to {1}".format(result["episode"]["title"], result["rating_advanced"]))
                myep.rating = result["rating_advanced"]
                db.session.merge(myep)
                db.session.commit()
 

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))
                    is_anime=self.is_anime
                )
                db.session.merge(insert2)
 
            db.session.merge(insert)

src/s/y/SynoDLNAtrakt-HEAD/synodlnatrakt/web.py   SynoDLNAtrakt(Download)
 
    content.rating = rating
    db.session.merge(content)
    db.session.commit()
    answer = trakt.rate(content, rating, returnStatus=True)

src/s/y/SynoDLNAtrakt-HEAD/synodlnatrakt/helper.py   SynoDLNAtrakt(Download)
        result.progress = 0
        result.scrobbled = 0
    db.session.merge(result)
    db.session.commit()
    images.get_images(imdb_id, "movie")