Well done Rycka!
In AO website:
If a main draw player is unable to play in the first round, the highest-ranked losing player in the third round of qualifying becomes a 'lucky loser' and fills the vacancy in the main draw.
First seeded Haider-Maurer lost QR2, Isner out from MD.
So it means Ricardas in AO MD, if he lost in QR3 he get LL