Put the beans in a sieve, rinse with cold water and drain. Peel onions and garlic and dice finely. Wash the thyme and dab dry. Put something aside for garnishing.
Heat 2 tablespoons of oil in a saucepan. Sauté the onions, garlic and beans in it. Deglaze with broth, add thyme and simmer for 15-20 minutes. Clean, wash and cut the leek into strips.
Peel and dice the potatoes. Clean, wash and cut the peppers into strips or pieces. Heat 1 tablespoon of oil in a large, coated pan. Fry the potatoes for about 3 minutes.
Add paprika and leek and continue to fry for 3-4 minutes. Remove thyme from the pot. Puree the soup with the cutting stick. Add potatoes, leek and paprika. Season to taste with salt, pepper, sugar and some lemon juice.
Possibly garnish with thyme.