Fakultas Ilmu Komputer UI

Commit c74ea273 authored by Muhammad Fairuzi Teguh's avatar Muhammad Fairuzi Teguh
Browse files

[REFACTOR] change == True to is True

parent 115cbbac
Pipeline #48356 passed with stages
in 1 minute and 56 seconds
......@@ -206,7 +206,7 @@ class FormulirDaftarDonorService:
start_y = column_with_start_y["start_y"]
fields = column_with_start_y["fields"]
for i, field in enumerate(fields):
x = second_column_yes_x if getattr(daftar_donor, field) == True else second_column_no_x
x = second_column_yes_x if getattr(daftar_donor, field) is True else second_column_no_x
draw.text(xy=(x, start_y + i*delta_y), **kwargs)
def generate_formulir(self, daftar_donor):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment