Skocz do zawartości

hubertsuder

Członkowie
  • Postów

    2
  • Dołączył

  • Ostatnio

O hubertsuder

  • Urodziny 31.10.1990

Informacje

hubertsuder's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputacja

  1. Naprawiłem błąd. Trzeba było 'line' przekonwertowac na string
  2. Po wywołaniu tego kodu zwraca mi error "bad argument type for built-in operation" def remap_lines_dict(line): line.update({ 'gross_ammount': line['net'] * float(f"1.{line['tax']}") }) return line lines = [remap_lines_dict(line) for line in request.data['lines']] print(lines) for line in lines: textob.textLine('-------------------------------------------------------------------------------------' '-------------') textob.textLine(line) Natomiast jak mam zakomentowany **for line in lines:** to wtedy nie wywala tego błędu.
×
×
  • Utwórz nowe...