I’am facing whith strange Peewee’s model behaviour. For my model (database PostgreSQL): class Car(BaseTable): id = UUIDField(primary_key=True, unique=True, default=uuid4) user = ForeignKeyField(SocialUser) vendor = CharField(max_length=30) model = CharField(max_length=30) colour = CharField(max_length=30) number = CharField(max_length=30) registered_date = DateTimeField(default=datetime.datetime.now) I’am trying to update some Fields this way: with database.atomic(): car, created = Car.get_or_create(user=record[‘user’], number=record[‘number’], defaults={‘vendor’: record[‘vendor’], ‘model’: ..

Read more

t = input(‘Enter a symbol to use for your letter:’) message = input(‘Enter a message:’).upper() if ‘F’ in message: print(f"{t}"f"{t}"f"{t}"f'{t}’f'{t}’f'{t}’f'{t}’"n" f"{t}"f'{t}’"n" f'{t}’f'{t}’"n" f'{t}’f'{t}’f'{t}’f'{t}’f'{t}’f'{t}’f'{t}’"n" f'{t}’f'{t}’"n" f'{t}’f'{t}’"n" f'{t}’f'{t}’"n" " ") if ‘H’ in message: for row in range(7): for col in range(5): if col ==0 or col ==4 or (row==3 and (col>0 and col<4)): print(f'{t}’, end="") else: ..

Read more